Open taobojlen opened 3 months ago
Hi, just for clarification I think this feature already exists https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/values.yaml#L687 https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/values.yaml#L694
@itspooya mimirtool doesn't allow to use them https://github.com/grafana/mimir/blame/7d5f8506c0c86d74cf70453e40572a3a06768efa/pkg/alertmanager/api.go#L48
@alessandro-verzicco That is nice to know I was also looking forward to this alertmanager config as secret but I thought maybe this is the answer I was looking for Thank you for clarification I will pick this up to proceed as it is not supported now
I was just looking to use secrets files and ended up here. As to why these were disallowed: https://github.com/cortexproject/cortex/pull/4129
Maybe something like the safe template path could be done for secrets, requiring them to be inside a tenant subdir within a common base.
Is your feature request related to a problem? Please describe.
I want to set up an Alertmanager receiver. This receiver needs a bearer token included in any requests, so I'd like to set a
credentials_file
as defined in the Prometheus Alertmanager docs.This is related to the discussion at https://github.com/grafana/mimir/discussions/5359.
Describe the solution you'd like
Basically, exactly what is specified in the Prometheus Alertmanager docs. Something that would allow me to use an existing Helm secret, e.g. with
Describe alternatives you've considered
Alternatively, the ability to read from environment variables could work.