Browse Source

Try 006bis

Philippe Caseiro 11 months ago
parent
commit
4bd29eaa04
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tmpl/prometheus.yml

+ 3
- 3
tmpl/prometheus.yml View File

@@ -26,9 +26,9 @@ scrape_configs:
26 26
     %if %%cliPr.prCliSonde == 'Node Exporter'
27 27
       - targets: ['%%cliPr.prCliIP:9100']
28 28
     %end if
29
-    %if %%cliPr.prCliSonde == 'Port'
30
-      - targets: ['%%cliPr.prCliIP:%%cliPr.prCliPort']
31
-    %end if
29
+  %end for
30
+  %for %%cliOpen in %%getVar('prOpenCli',[])
31
+      - targets: ['%%cliOpen.prOpenCliIP:%%cliOpen.prOpenCliPort']
32 32
   %end for
33 33
 %end if
34 34