Add observability stack configuration for Grafana, Prometheus, Loki, and cAdvisor
This commit is contained in:
26
observability/prometheus/prometheus-compose.yaml
Normal file
26
observability/prometheus/prometheus-compose.yaml
Normal 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"]
|
||||
Reference in New Issue
Block a user