alloy: set prometheus url as secret

This commit is contained in:
Márcio Fernandes
2026-08-30 10:21:50 +00:00
parent e74449f15f
commit 761505a795
2 changed files with 15 additions and 9 deletions
@@ -221,7 +221,7 @@ alloy:
prometheus.remote_write "metrics_service" {
endpoint {
url = "https://prometheus.monitoring.limbosolutions.com/api/v1/write"
url = env("PROMETHEUS_URL")
}
}
@@ -250,3 +250,8 @@ alloy:
secretKeyRef:
name: alloy-global
key: loki_url
- name: PROMETHEUS_URL
valueFrom:
secretKeyRef:
name: alloy-global
key: prometheus_url