Add observability stack with Grafana, Prometheus, Loki, and cAdvisor

- Introduced a new Grafana dashboard for monitoring Docker containers using cAdvisor.
- Created provisioning files for Grafana dashboards and data sources.
- Added Dockerfiles and configuration files for Loki and Prometheus.
- Implemented a Docker Compose stack for the observability services.
- Configured Traefik as a reverse proxy for the services with appropriate routing.
- Added scripts for SSH tunneling to access the telemetry dashboard.
- Included secrets management for Grafana admin credentials.
This commit is contained in:
2026-01-18 15:36:23 +01:00
parent 38b651cb0b
commit 9b143e7638
24 changed files with 19139 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Prometheus main configuration
global:
scrape_interval: 30s
evaluation_interval: 30s
scrape_configs:
# Scrape Prometheus itself
- job_name: "prometheus"
metrics_path: /metrics
dns_sd_configs:
- names: ["tasks.prometheus"]
type: A
refresh_interval: "30s"
port: 9090
# Scrape cAdvisor
- job_name: "cadvisor"
metrics_path: /metrics
dns_sd_configs:
- names: ["tasks.cadvisor"]
type: A
refresh_interval: "30s"
port: 8080
# Scrape Node Exporter
- job_name: "node_exporter"
metrics_path: /metrics
dns_sd_configs:
- names: ["tasks.node_exporter"]
type: A
refresh_interval: "30s"
port: 9100
# Scrape Traefik
- job_name: "traefik"
metrics_path: /metrics
static_configs:
- targets: ["traefik:9090"]