prometheus: config cleanup, actually use recording and alerting rules
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
# my global config
|
# my global config
|
||||||
global:
|
global:
|
||||||
scrape_interval: {{ prometheus_scrape_interval }}
|
scrape_interval: {{ prometheus_scrape_interval }}
|
||||||
@@ -16,11 +18,9 @@ alerting:
|
|||||||
|
|
||||||
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
||||||
rule_files:
|
rule_files:
|
||||||
# - "first_rules.yml"
|
- "/etc/prometheus/recording/*.yaml"
|
||||||
# - "second_rules.yml"
|
- "/etc/prometheus/alerting/*.yaml"
|
||||||
|
|
||||||
# A scrape configuration containing exactly one endpoint to scrape:
|
|
||||||
# Here it's Prometheus itself.
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "prometheus"
|
- job_name: "prometheus"
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|||||||
Reference in New Issue
Block a user