Hello,
try to deploy grafana-agent in static mode into kubernetes and would like to get password for remote_write from env.
I’ve enabled -config.expand-env through values.agent.extraArgs,
env is defined by
extraEnv:
- name: REMOTE_WRITE_PASSWORD
valueFrom:
secretKeyRef:
name: grafana-agent-remote-write
key: password
and specification of configmap content by
configMap:
content: |-
metrics:
configs:
remote_write:
- url: https://myprometheus/prometheus/api/v1/write
basic_auth:
password: ${REMOTE_WRITE_PASSWORD}
username: username
Unfortunately env is not expanded. Any idea what is the issue ?