瀏覽代碼

prometheus-server: Only target node_exporter for Linux nodes

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 9 月之前
父節點
當前提交
7ad21ce3b5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 %}