Skip to content
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

Update dashboards when relation broken #285

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

samuelallan72
Copy link
Contributor

Previously, when the relation between grafana-agent and a charm providing a dashboard
(over the grafana-dashboards-consumer relation)
was broken, the dashboards would not be removed.
This fixes that issue, by also running the dashboards changed method when the relation is broken.

Testing Instructions

  • Deploy grafana, grafana-agent-k8s, and a charm that provides a dashboard.
  • verify that the dashboards are visible in the grafana web ui
  • remove the relation between grafana-agent-k8s and the charm that provides a dashboard
  • verify that the dashboards are no longer visible in the grafana web ui. These dashboards should also be removed from /var/lib/juju/agents/unit-grafana-agent-0/charm/grafana_dashboards/ in grafana-agent-k8s.

Previously, when the relation between grafana-agent
and a charm providing a dashboard
(over the grafana-dashboards-consumer relation)
was broken, the dashboards would not be removed.
This fixes that issue, by also running the dashboards changed method
when the relation is broken.
@sed-i sed-i merged commit 6915307 into canonical:main Apr 10, 2024
12 checks passed
@sed-i
Copy link
Contributor

sed-i commented Apr 10, 2024

Thanks @samuelallan72!

@samuelallan72 samuelallan72 deleted the fix-remove-dashboards branch April 10, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants