New dashboard revisions are being uploaded every 5 minutes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
Critical
|
Alvaro Uria |
Bug Description
Grafana in use: 5.0.0 via snap
Charm in use: cs:grafana-19
It appears that we are updating the charm-managed dashboards roughly every 5 minutes with new revisions.
On one customer's cloud, for some reason the automatic cleanup of old revisions is either not occurring or not running fast enough (which is its own issue); this issue is causing revisions of the 5 charm-managed dashboards to pile up. At the time of analysis that particular case has 100,000+ revisions apiece per charm-managed dashboard (e.g. https:/
In part because of the above, and also to simply make things cleaner, I think we should only update the dashboards with new revisions when something has changed.
Related branches
- Paul Goins: Approve
-
Diff: 51 lines (+22/-4)1 file modifiedreactive/grafana.py (+22/-4)
- Alvaro Uria (community): Approve
- Drew Freiberger (community): Needs Resubmitting
- Joe Guo (community): Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 208 lines (+130/-27)3 files modified.gitignore (+13/-0)
reactive/grafana.py (+116/-27)
wheelhouse.txt (+1/-0)
Changed in charm-grafana: | |
importance: | Undecided → Critical |
Changed in charm-grafana: | |
assignee: | nobody → Drew Freiberger (afreiberger) |
Changed in charm-grafana: | |
milestone: | none → 20.02 |
Changed in charm-grafana: | |
status: | New → Fix Committed |
Changed in charm-grafana: | |
status: | In Progress → Fix Committed |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |
Meant to refer to this in the previous comment: https:/ /pastebin. ubuntu. com/p/fW6HfH8cq X/