You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a single annotation to Grafana via Ansible, with dynamic variables (e.g. endpoint, dashboard_id's).
ISSUE TYPE
Feature Idea
COMPONENT NAME
community.grafana.add_grafana_annotation
ADDITIONAL INFORMATION
I wanted to utilise Grafana annotations for my Ansible deployments, but the callback plugin seemed too limited for my use-case (different Grafana endpoints - various projects/environments and single Ansible repo, different dashboards to be updated by each role etc, which I believe is a common setup for many people).
An 'add annotation' module is more useful for that kind of operation, because it can utilise group_vars or defaults to achieve the desired result.
I have created a sample module at my GitHub, let me know if it needs anything else to be included in community.grafana.
Another small note on that: In my module I implemented 'annotate dashboard by name' functionality, so if we could have the same in the community module it would be amazing :)
SUMMARY
Add a single annotation to Grafana via Ansible, with dynamic variables (e.g. endpoint, dashboard_id's).
ISSUE TYPE
COMPONENT NAME
community.grafana.add_grafana_annotation
ADDITIONAL INFORMATION
I wanted to utilise Grafana annotations for my Ansible deployments, but the callback plugin seemed too limited for my use-case (different Grafana endpoints - various projects/environments and single Ansible repo, different dashboards to be updated by each role etc, which I believe is a common setup for many people).
An 'add annotation' module is more useful for that kind of operation, because it can utilise
group_vars
ordefaults
to achieve the desired result.I have created a sample module at my GitHub, let me know if it needs anything else to be included in
community.grafana
.The text was updated successfully, but these errors were encountered: