Prometheus-and-Grafana-Dock.../prometheus/prometheus.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-09 23:45:33 +00:00
global:
scrape_interval: 15s
evaluation_interval: 15s
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'docker-host-alpha'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- "alert.rules"
# A scrape configuration containing exactly one endpoint to scrape.
scrape_configs:
- job_name: 'nodeexporter'
2023-10-13 10:31:46 +00:00
scrape_interval: 15s
2020-04-09 23:45:33 +00:00
static_configs:
- targets: ['nodeexporter:9100']
- job_name: 'cadvisor'
2023-10-13 10:31:46 +00:00
scrape_interval: 15s
2020-04-09 23:45:33 +00:00
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'prometheus'
2023-10-13 10:31:46 +00:00
scrape_interval: 15s
2020-04-09 23:45:33 +00:00
static_configs:
- targets: ['localhost:9090']
- job_name: 'pushgateway'
2023-10-13 10:31:46 +00:00
scrape_interval: 15s
2020-04-09 23:45:33 +00:00
honor_labels: true
static_configs:
- targets: ['pushgateway:9091']
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- 'alertmanager:9093'
# - job_name: 'nginx'
# scrape_interval: 10s
# static_configs:
# - targets: ['nginxexporter:9113']
# - job_name: 'aspnetcore'
# scrape_interval: 10s
# static_configs:
# - targets: ['eventlog-proxy:5000', 'eventlog:5000']