Try 008
This commit is contained in:
parent
f61a15d609
commit
4a24601bea
|
@ -12,26 +12,34 @@ scrape_configs:
|
||||||
honor_labels: true
|
honor_labels: true
|
||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['%%nom_domaine_machine:9090']
|
- targets: ['%%nom_domaine_machine:9090'%slurp
|
||||||
%if %%getVar('activerSndNodeExpoter','non') == 'oui'
|
%if %%getVar('activerSndNodeExpoter','non') == 'oui'
|
||||||
- targets: ['%%nom_domaine_machine:9100']
|
, '%%nom_domaine_machine:9100'%slurp
|
||||||
%end if
|
%end if
|
||||||
|
]
|
||||||
|
|
||||||
- job_name: '%%job_name_node'
|
- job_name: '%%job_name_node'
|
||||||
file_sd_configs:
|
file_sd_configs:
|
||||||
- files: [ "%%job_file_config/*.yml" ]
|
- files: [ "%%job_file_config/*.yml" ]
|
||||||
|
%if %%is_empty('ajout_client_prometheus') or %%is_empty('addPrOpenCli')
|
||||||
|
# Nothing to configure
|
||||||
|
%else
|
||||||
static_configs:
|
static_configs:
|
||||||
%if %%getVar('ajout_client_prometheus','non') == 'oui'
|
- targets: [ "127.0.0.1:9100"%slurp
|
||||||
|
%if %%getVar('ajout_client_prometheus','non') == 'oui'
|
||||||
%for %%cliPr in %%getVar('prCli',[])
|
%for %%cliPr in %%getVar('prCli',[])
|
||||||
%if %%cliPr.prCliSonde == 'Node Exporter'
|
%if %%cliPr.prCliSonde == 'Node Exporter'
|
||||||
- targets: ['%%cliPr.prCliIP:9100']
|
, '%%cliPr.prCliIP:9100'%slurp
|
||||||
%end if
|
%end if
|
||||||
%end for
|
%end for
|
||||||
|
%end if
|
||||||
|
%if %%getVar('addPrOpenCli','non') == 'oui'
|
||||||
%for %%cliOpen in %%getVar('prOpenCli',[])
|
%for %%cliOpen in %%getVar('prOpenCli',[])
|
||||||
- targets: ['%%cliOpen.prOpenCliIP:%%cliOpen.prOpenCliPort']
|
, '%%cliOpen.prOpenCliIP:%%cliOpen.prOpenCliPort'%slurp
|
||||||
%end for
|
%end for
|
||||||
|
%end if
|
||||||
|
]
|
||||||
%end if
|
%end if
|
||||||
|
|
||||||
#alerting:
|
#alerting:
|
||||||
# alertmanagers:
|
# alertmanagers:
|
||||||
# - scheme: https
|
# - scheme: https
|
||||||
|
|
Loading…
Reference in New Issue