diff --git a/dicos/70_prometheus.xml b/dicos/70_prometheus.xml index 4c18aff..1a2a144 100644 --- a/dicos/70_prometheus.xml +++ b/dicos/70_prometheus.xml @@ -9,7 +9,6 @@ 80 443 9090 - 9100 3000 @@ -40,9 +39,7 @@ non - - client.prometheus.lan - + node diff --git a/tmpl/prometheus.yml b/tmpl/prometheus.yml index cd5b077..a2034bc 100644 --- a/tmpl/prometheus.yml +++ b/tmpl/prometheus.yml @@ -13,7 +13,9 @@ scrape_configs: static_configs: - targets: ['%%nom_domaine_machine:9090'] +%if %%getVar('activerSndNodeExpoter','non') == 'oui' - targets: ['%%nom_domaine_machine:9100'] +%end if - job_name: '%%job_name_node' file_sd_configs: