If a metric doesn't exist, Grafana doesn't load a dashboard

Bug #1785257 reported by Alvaro Uria
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Grafana Charm
Won't Fix
Undecided
Unassigned

Bug Description

This bug is related to bug #1777280. The fix doesn't load a dashboard if there is at least a metric that is not returning data.

As wishlist, a dashboard could be loaded if there is at least a metric that is collecting data:
https://pastebin.ubuntu.com/p/Dp3jRJq9KB/

An alternative would be to create a subset of dashboards that we know would match most of the environments.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

I've updated the code with my idea for solving this which is ensuring we have at least X percent matching metrics for a dashboard. Currently coded as 50% or greater.

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

Revision history for this message
Chris Sanders (chris.sanders) wrote :

I think the correct approach is the second suggesting on the description, fix the dashboards to use available metrics rather than complicating the choice of dashboards.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

Agreed. I updated the charm to spit out all missing metrics for a skipped dashboard to the DEBUG log. Hopefully this will help speed dashboard improvement cycles. Released as cs:grafana-18

Changed in grafana-charm:
status: New → Won't Fix
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.