2016-07-14 13:24:18 +02:00
|
|
|
# my global config
|
|
|
|
global:
|
|
|
|
scrape_interval: 15s # By default, scrape targets every 15 seconds.
|
|
|
|
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
|
|
|
|
# scrape_timeout is set to the global default (10s).
|
|
|
|
|
|
|
|
# Attach these labels to any time series or alerts when communicating with
|
|
|
|
# external systems (federation, remote storage, Alertmanager).
|
|
|
|
external_labels:
|
|
|
|
monitor: 'my-project'
|
|
|
|
|
|
|
|
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
|
|
|
rule_files:
|
2017-11-10 11:56:16 +01:00
|
|
|
- 'alert.rules'
|
2016-07-14 13:24:18 +02:00
|
|
|
# - "first.rules"
|
|
|
|
# - "second.rules"
|
|
|
|
|
2017-11-10 10:03:57 +01:00
|
|
|
# alert
|
2017-11-10 14:21:53 +01:00
|
|
|
alerting:
|
|
|
|
alertmanagers:
|
2017-11-10 10:03:57 +01:00
|
|
|
- scheme: http
|
|
|
|
static_configs:
|
2017-11-10 14:21:53 +01:00
|
|
|
- targets:
|
2017-11-10 10:03:57 +01:00
|
|
|
- "alertmanager:9093"
|
2017-11-10 14:21:53 +01:00
|
|
|
|
2016-07-14 13:24:18 +02:00
|
|
|
# A scrape configuration containing exactly one endpoint to scrape:
|
|
|
|
# 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.
|
|
|
|
- job_name: 'prometheus'
|
2017-09-12 15:21:25 +02:00
|
|
|
- job_name: 'node'
|
2016-07-14 13:24:18 +02:00
|
|
|
|
|
|
|
# Override the global default and scrape targets from this job every 5 seconds.
|
|
|
|
scrape_interval: 5s
|
|
|
|
|
|
|
|
# metrics_path defaults to '/metrics'
|
|
|
|
# scheme defaults to 'http'.
|
|
|
|
|
|
|
|
static_configs:
|
|
|
|
- targets: ['localhost:9090','cadvisor:8080','node-exporter:9100']
|