48 lines
1004 B
YAML
48 lines
1004 B
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
# Rule files
|
|
rule_files:
|
|
- 'alerts.yml'
|
|
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets:
|
|
# We're not setting up Alertmanager in this config
|
|
# but you can add it later if needed
|
|
|
|
scrape_configs:
|
|
# Prometheus itself
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
# Container metrics via cAdvisor
|
|
- job_name: 'cadvisor'
|
|
static_configs:
|
|
- targets: ['cadvisor:8080']
|
|
metrics_path: /metrics
|
|
scheme: http
|
|
|
|
# Host metrics via node-exporter
|
|
- job_name: 'node-exporter'
|
|
static_configs:
|
|
- targets: ['node-exporter:9100']
|
|
|
|
# Loki metrics
|
|
- job_name: 'loki'
|
|
static_configs:
|
|
- targets: ['loki:3100']
|
|
|
|
# Grafana metrics
|
|
- job_name: 'grafana'
|
|
static_configs:
|
|
- targets: ['grafana:3000']
|
|
|
|
# Alloy metrics
|
|
- job_name: 'alloy'
|
|
static_configs:
|
|
- targets: ['alloy:12345'] # Default metrics port for Alloy
|