Kaynağa Gözat

prometheus-server: Only target node_exporter for Linux nodes

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 10 ay önce
ebeveyn
işleme
7ad21ce3b5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      prometheus-server/prometheus.yml

+ 1 - 1
prometheus-server/prometheus.yml

@@ -31,7 +31,7 @@ scrape_configs:
   - job_name: node
     static_configs:
       - targets:
-{%- for node, node_config in nodes %}
+{%- for node, node_config in nodes if node_config.get('platform') == 'linux' %}
         - {{ node }}:9100
 {%- endfor %}