2015-05-07 14:47:18 +00:00
|
|
|
# my global config
|
2015-05-19 16:12:58 +00:00
|
|
|
global:
|
2016-11-21 08:53:59 +00:00
|
|
|
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
|
|
|
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
2015-05-07 14:47:18 +00:00
|
|
|
# scrape_timeout is set to the global default (10s).
|
|
|
|
|
2017-10-31 22:02:08 +00:00
|
|
|
# Alertmanager configuration
|
|
|
|
alerting:
|
|
|
|
alertmanagers:
|
2017-11-06 09:46:09 +00:00
|
|
|
- static_configs:
|
2017-10-31 22:02:08 +00:00
|
|
|
- targets:
|
|
|
|
# - alertmanager:9093
|
|
|
|
|
2016-08-03 06:29:51 +00:00
|
|
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
2015-05-07 14:47:18 +00:00
|
|
|
rule_files:
|
2017-10-31 22:02:08 +00:00
|
|
|
# - "first_rules.yml"
|
|
|
|
# - "second_rules.yml"
|
2015-05-07 14:47:18 +00:00
|
|
|
|
2016-02-24 20:06:36 +00:00
|
|
|
# A scrape configuration containing exactly one endpoint to scrape:
|
2015-05-07 14:47:18 +00:00
|
|
|
# Here it's Prometheus itself.
|
|
|
|
scrape_configs:
|
|
|
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
2015-05-19 16:12:58 +00:00
|
|
|
- job_name: 'prometheus'
|
2015-05-07 14:47:18 +00:00
|
|
|
|
|
|
|
# metrics_path defaults to '/metrics'
|
|
|
|
# scheme defaults to 'http'.
|
|
|
|
|
2016-06-14 07:39:34 +00:00
|
|
|
static_configs:
|
2015-10-02 21:00:10 +00:00
|
|
|
- targets: ['localhost:9090']
|