Files
grafana-loki-prometheus-all…/config/prometheus.yml
T
2025-03-11 11:23:30 +00:00

46 lines
863 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
# Rule files
rule_files:
- 'alerts.yml'
alerting:
alertmanagers:
- static_configs:
- targets:
scrape_configs:
# Prometheus itself
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus: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']