Add observability stack configuration for Grafana, Prometheus, Loki, and cAdvisor

This commit is contained in:
2026-01-18 15:49:35 +01:00
parent 9b143e7638
commit b0f2fef58f
3 changed files with 183 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
# Prometheus main configuration
global:
scrape_interval: 30s
evaluation_interval: 30s
scrape_configs:
# Scrape Prometheus itself
- job_name: "prometheus"
static_configs:
- targets: ["prometheus:9090"]
metrics_path: /metrics
# Scrape cAdvisor
- job_name: "cadvisor"
static_configs:
- targets: ["cadvisor:8080"]
# Scrape Node Exporter
- job_name: "node_exporter"
static_configs:
- targets: ["node_exporter:9100"]
- job_name: "traefik"
static_configs:
- targets: ["traefik:9090"]