Jonas De Gendt
Jonas De Gendt
I'm also running into this. If I go ahead and put the api key directly as a string into `opsgenie_config/api_key` of the receiver, it works. When using `opsgenie_config/api_key_file` and a...
@grobinson-grafana, perhaps to add: I'm not using Vault to inject the file at hand. I'm deploying [using Helm](https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml) and there's no init containers involved (aside from config-reloader). So given that...
Went ahead and modified the statefulset as such: ``` containers: - command: [ "/bin/sh", "-c" ] args: - cat "/etc/alertmanager/secrets/opsgenie-api-key/opsgenie"; /bin/alertmanager --config.file=/etc/alertmanager/config_out/alertmanager.env.yaml ...; ``` And it outputs my API key...
I ended up adding some additional logging to the Opsgenie notifier to print the headers before alerting and lo and behold, there's a newline attached to my API key: ```...