complete observability stak alloy
This commit is contained in:
22
docker-compose-alloy/prometheus.yml
Normal file
22
docker-compose-alloy/prometheus.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
global:
|
||||
scrape_interval: 10s
|
||||
evaluation_interval: 10s
|
||||
|
||||
rule_files:
|
||||
- /etc/prometheus/rules/*.yml
|
||||
|
||||
scrape_configs:
|
||||
# Job 1: Monitora se Prometheus stesso è attivo
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Job 2: Scrape metriche di Alloy (self-monitoring)
|
||||
- job_name: 'alloy'
|
||||
static_configs:
|
||||
- targets: ['alloy:12345']
|
||||
labels:
|
||||
instance: 'alloy'
|
||||
|
||||
# NOTA: Le metriche dell'host (ex-Node Exporter) e OTLP arrivano via Remote Write da Alloy
|
||||
|
||||
Reference in New Issue
Block a user