diff --git a/dicos/70_prometheus.xml b/dicos/70_prometheus.xml
index 384aa48..9c181e4 100644
--- a/dicos/70_prometheus.xml
+++ b/dicos/70_prometheus.xml
@@ -36,10 +36,6 @@
10s
-
- non
-
-
node
@@ -47,6 +43,14 @@
/etc/prometheus/nodes
+
+
+ non
+
+
+
+
+
localhost
@@ -66,6 +70,15 @@
+
+ prCliIP
+ prCliSonde
+
+
+
+ ['Node Exporter']
+
+
non
prometheus
diff --git a/tmpl/prometheus.yml b/tmpl/prometheus.yml
index a2034bc..7df2f07 100644
--- a/tmpl/prometheus.yml
+++ b/tmpl/prometheus.yml
@@ -22,11 +22,11 @@ scrape_configs:
- files: [ "%%job_file_config/*.yml" ]
static_configs:
%if %%getVar('ajout_client_prometheus','non') == 'oui'
- %if not %%is_empty(%%nouveau_node_exporter)
- %for %%client_prometheus in %%nouveau_node_exporter
+ %for %%cliPr in %%getVar('prCli',[])
+ %if %%cliPr.CliSonde == 'Node Exporter'
- targets: ['%%client_prometheus:9100']
- %end for
- %end if
+ %end if
+ %end for
%end if
#alerting: