summaryrefslogtreecommitdiffstats
path: root/roles/prometheus/templates/prometheus.yml.j2
blob: c43864eacb49eb20bdfe93090e08d16242da92c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
global:
  scrape_interval: {{ prometheus_scrape_interval }}
  evaluation_interval: {{ prometheus_scrape_interval }}

rule_files:

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: {{ prometheus_targets | to_yaml }}

  - job_name: 'node'
    static_configs:
      - targets: {{ prometheus_node_exporter_targets | to_yaml }}
    scrape_interval: {{ prometheus_scrape_interval }}
    metrics_path: /metrics