alloy: set prometheus url as secret
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user