diff --git a/tmpl/prometheus.yml b/tmpl/prometheus.yml index b2cab46..8bf2f51 100644 --- a/tmpl/prometheus.yml +++ b/tmpl/prometheus.yml @@ -26,9 +26,9 @@ scrape_configs: %if %%cliPr.prCliSonde == 'Node Exporter' - targets: ['%%cliPr.prCliIP:9100'] %end if - %if %%cliPr.prCliSonde == 'Port' - - targets: ['%%cliPr.prCliIP:%%cliPr.prCliPort'] - %end if + %end for + %for %%cliOpen in %%getVar('prOpenCli',[]) + - targets: ['%%cliOpen.prOpenCliIP:%%cliOpen.prOpenCliPort'] %end for %end if