Files
grafana-loki-prometheus-all…/config/prometheus.yml
T
2025-03-18 14:06:29 +00:00

66 lines
1.3 KiB
YAML

global:
scrape_interval: 60s
evaluation_interval: 60s
scrape_timeout: 10s
sample_limit: 1000
# Rule files
rule_files:
- 'alerts.yml'
alerting:
alertmanagers:
- static_configs:
- targets:
scrape_configs:
# Prometheus
- job_name: 'prometheus'
sample_limit: 50000
static_configs:
- targets: ['prometheus:9090']
# Container metrics via cAdvisor
- job_name: 'ktpv-orch_cadvisor'
sample_limit: 50000
static_configs:
- targets: ['cadvisor:8080']
metrics_path: /metrics
scheme: http
- job_name: 'ktpv-apps01_cadvisor'
sample_limit: 50000
static_configs:
- targets: ['10.249.84.41:9050']
metrics_path: /metrics
scheme: http
# Metrics via node-exporter
- job_name: 'ktpv-orch_node-exporter'
sample_limit: 50000
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'ktpv-apps01_node-exporter'
sample_limit: 50000
static_configs:
- targets: ['10.249.84.41:9060']
# 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: ['10.249.84.41:9030']