Files
grafana-loki-prometheus-all…/config/prometheus.yml
T

47 lines
994 B
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']
# 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']
# Replace node-exporter job with Alloy
- job_name: 'ktpv-orch_node-exporter'
sample_limit: 50000
static_configs:
- targets: ['alloy:12345'] # Scrape from Alloy's metrics endpoint
metrics_path: /metrics
- job_name: 'ktpv-apps01_node-exporter'
sample_limit: 50000
static_configs:
- targets: ['10.249.84.41:12345'] # Adjust IP as needed
metrics_path: /metrics