-
Notifications
You must be signed in to change notification settings - Fork 97
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
Fix Grafana Configuration for Unified and Legacy Alerting Based on Version #215
Conversation
Could you please review - @gardar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aplogies for the late review, LGTM!
Hello guys ! Any news about this PR ? |
Hello ! Also interested in this PR. It is possible to review ? Thanks |
@ishanjainn Do you think we can merge it? |
Ill make this part of the next release (Will be released on Monday) |
Hello, is it possible to release a new version of the collection ? |
Upgrade `grafana.grafana` from git+https://github.com/usegalaxy-eu/ansible-grafana-collection-grafana.git/,cc9f61c0ae30c12eecf2af4696d95a84ea4565e1 (usegalaxy-eu/ansible-grafana-collection fork) to latest official release (reason for change usegalaxy-eu/issues#558 (comment)). Please note that, although it is not a problem because we are not using them anymore, this involves tasks "Import grafana dashboards via api" breaking again and "Ensure datasources exist (via API)" not taking UIDs anymore. Version 5.3.0 fixed the role `grafana.grafana.grafana` not populating the `[unified_alerting]` section of grafana.ini (grafana/grafana-ansible-collection#215). Therefore, remove the post_task from the grafana.yml playbook that worked the issue around.
Summary
This PR addresses an issue where the
[alerting]
section was incorrectly templated for Grafana versionsv11
and higher, causing failures in Grafana deployments.Changes
[unified_alerting]
and[alerting]
sections based on the Grafana version.[unified_alerting]
section is included whengrafana_version
islatest
orv11
and higher.[alerting]
section is included only for versions belowv11
.Testing
[unified_alerting]
section is correctly templated for versionslatest
andv11+
.[alerting]
section is correctly templated for versions belowv11
.Notes
v11
and maintains support for legacy alerting mechanisms in older versions.