Prometheus Configuration
prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: ['localhost:{alertmanager-port}']
rule_files:
- "rules/*.yml"
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:{prometheus-port}']
- job_name: 'node'
static_configs:
- targets: ['localhost:{node-exporter-port}']
TODO: Service discovery, relabeling, remote_write