This commit is contained in:
2018-06-04 10:28:55 +02:00
parent a3e5e643e0
commit 638295626b
2 changed files with 21 additions and 8 deletions

View File

@ -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: