diff --git a/tmpl/prometheus.yml b/tmpl/prometheus.yml index 7df2f07..e7607f8 100644 --- a/tmpl/prometheus.yml +++ b/tmpl/prometheus.yml @@ -23,8 +23,8 @@ scrape_configs: static_configs: %if %%getVar('ajout_client_prometheus','non') == 'oui' %for %%cliPr in %%getVar('prCli',[]) - %if %%cliPr.CliSonde == 'Node Exporter' - - targets: ['%%client_prometheus:9100'] + %if %%cliPr.prCliSonde == 'Node Exporter' + - targets: ['%%cliPr.prCliIP:9100'] %end if %end for %end if