-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mimir Alertmanager failing to load config as a global opsgenie_api_key is not specified #8723
Comments
I'm facing the same issue with the introduction of this new Grafana definitions validation in Mimir 2.13. From Alertmanager perspective api_key_file field for Opsgenie is still entirely supported. Questions:
|
Encountered the same issue
|
Hitting this wile trying to set |
Opened a pr on the downstream repo grafana/alerting#301. |
Describe the bug
Since upgrading to Mimir
2.13.0
, Mimir Alertmanager is not loading our existing config and is giving this error:To Reproduce
Steps to reproduce the behavior:
Update the alertmanager fallback config to include an Opsgenie receiver and do not set
opsgenie_api_key
in the global config.Alertmanager won't come up and in logs an error will be produced indicating that global opsgenie API key is not set.
Expected behavior
opsgenie_api_key
is not a mandatory config parameter. In our setup we useopsgenie_api_key_file
and specify this at per receiver level, instead of in the global config.So I expect that the presence of
opsgenie_api_key
in global config section must not be manadatory.Environment
Additional Context
Seems like this behaviour is introduced through this check in
grafana/alerting
repo: https://github.com/grafana/alerting/blob/main/definition/compat.go#L115-L119The text was updated successfully, but these errors were encountered: