summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/prometheus.yml.j2
blob: 007afa907406e24fb47433225a93258903975896 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
global:
  scrape_interval:     15s
  evaluation_interval: 15s

rule_files:
  - /etc/prometheus/rules/*.yml

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
    - targets: ['localhost:9090']
{% for job in prometheus_server_jobs %}

  - job_name: '{{ job }}'
    metrics_path: /proxy
    params:
      module:
      - {{ job }}
    file_sd_configs:
    - files:
      - "/etc/prometheus/jobs/{{ job }}/*.yml"
{% endfor %}