refine dc and configs

This commit is contained in:
Bartal Læarsson
2025-03-11 14:19:34 +00:00
parent 77f664c5de
commit cf3968ac2c
2 changed files with 24 additions and 7 deletions
+10 -2
View File
@@ -1,6 +1,8 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_interval: 60s
evaluation_interval: 60s
scrape_timeout: 10s
sample_limit: 1000 # Limit samples per scrape to prevent overload
# Rule files
rule_files:
@@ -14,11 +16,13 @@ alerting:
scrape_configs:
# Prometheus itself
- job_name: 'prometheus'
sample_limit: 50000
static_configs:
- targets: ['prometheus:9090']
# Container metrics via cAdvisor
- job_name: 'cadvisor'
sample_limit: 50000
static_configs:
- targets: ['cadvisor:8080']
metrics_path: /metrics
@@ -26,20 +30,24 @@ scrape_configs:
# Host metrics via node-exporter
- job_name: 'node-exporter'
sample_limit: 50000
static_configs:
- targets: ['node-exporter:9100']
# Loki metrics
- job_name: 'loki'
sample_limit: 50000
static_configs:
- targets: ['loki:3100']
# Grafana metrics
- job_name: 'grafana'
sample_limit: 50000
static_configs:
- targets: ['grafana:3000']
# Alloy metrics
- job_name: 'alloy'
sample_limit: 50000
static_configs:
- targets: ['alloy:12345']