New dashboard revisions are being uploaded every 5 minutes

Bug #1858490 reported by Paul Goins
8
This bug affects 1 person
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://pastebin.ubuntu.com/p/fW6HfH8cqX/), causing the grafana.db SQLite file to balloon to many gigs in size.

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

Revision history for this message
Paul Goins (vultaire) wrote :

Meant to refer to this in the previous comment: https://pastebin.ubuntu.com/p/fW6HfH8cqX/

Revision history for this message
Paul Goins (vultaire) wrote :

Updated description.

description: updated
Jeremy Lounder (jldev)
Changed in charm-grafana:
importance: Undecided → Critical
Changed in charm-grafana:
assignee: nobody → Drew Freiberger (afreiberger)
Alvaro Uria (aluria)
Changed in charm-grafana:
milestone: none → 20.02
Alvaro Uria (aluria)
Changed in charm-grafana:
status: New → Fix Committed
Revision history for this message
Alvaro Uria (aluria) wrote :

I have been able to reproduce it after the latest MP has been committed [1]. This bug needs to be looked after next week.

1. https://code.launchpad.net/~afreiberger/charm-grafana/+git/grafana-charm-1/+merge/377467

Changed in charm-grafana:
status: Fix Committed → In Progress
assignee: Drew Freiberger (afreiberger) → Alvaro Uria (aluria)
Alvaro Uria (aluria)
Changed in charm-grafana:
status: In Progress → Fix Committed
Changed in charm-grafana:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.