2018-04-16 12:54:20 +02:00
|
|
|
# my global config
|
|
|
|
global:
|
|
|
|
scrape_interval: %%prometheusScrapeInterval
|
|
|
|
evaluation_interval: %%prometheusEvaluationInterval
|
|
|
|
scrape_timeout: %%prometheusScrapeTimeout
|
|
|
|
|
|
|
|
rule_files:
|
|
|
|
- "/etc/prometheus/rules.d/*.yml"
|
|
|
|
|
|
|
|
scrape_configs:
|
2018-04-17 12:32:05 +02:00
|
|
|
- job_name: %%prometheusJobName
|
|
|
|
honor_labels: true
|
2018-04-16 12:54:20 +02:00
|
|
|
|
|
|
|
static_configs:
|
2018-04-17 12:32:05 +02:00
|
|
|
- targets: ['%%nom_domaine_machine:9090']
|
2018-06-01 11:27:07 +02:00
|
|
|
%if %%getVar('activerSndNodeExpoter','non') == 'oui'
|
2018-05-29 16:24:28 +02:00
|
|
|
- targets: ['%%nom_domaine_machine:9100']
|
2018-06-01 11:27:07 +02:00
|
|
|
%end if
|
2018-04-17 12:32:05 +02:00
|
|
|
|
|
|
|
- job_name: '%%job_name_node'
|
|
|
|
file_sd_configs:
|
|
|
|
- files: [ "%%job_file_config/*.yml" ]
|
2018-05-28 16:57:39 +02:00
|
|
|
static_configs:
|
|
|
|
%if %%getVar('ajout_client_prometheus','non') == 'oui'
|
|
|
|
%if not %%is_empty(%%nouveau_node_exporter)
|
|
|
|
%for %%client_prometheus in %%nouveau_node_exporter
|
|
|
|
- targets: ['%%client_prometheus:9100']
|
|
|
|
%end for
|
|
|
|
%end if
|
|
|
|
%end if
|
2018-04-17 12:32:05 +02:00
|
|
|
|
|
|
|
#alerting:
|
|
|
|
# alertmanagers:
|
|
|
|
# - scheme: https
|
|
|
|
# static_configs:
|
|
|
|
# - targets:
|
|
|
|
# - "1.2.3.4:9093"
|
|
|
|
# - "1.2.3.5:9093"
|
|
|
|
# - "1.2.3.6:9093"
|