Func tests need manual intervention to recycle grafana:grafana-source<->prometheus relation

Bug #1901044 reported by Alvaro Uria
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grafana Charm
Won't Fix
Low
Unassigned

Bug Description

Grafana only checks if local dashboards (templates) should be imported when the relation with Prometheus is triggered (grafana-source interface).

During functional tests, a fresh deploy occurs and the prometheus:target<->prometheus-ceph-exporter relation can't populate Ceph metrics quick enough. This causes the Grafana<->Prometheus relation to be unable to import the Ceph dashboards (ceph_* metrics are missing) which hence causes func tests to fail (no more than 4 dashboards).

As a workaround:
* juju remove-relation -m zaza-XXXX grafana:grafana-source prometheus
* watch juju add-relation -m zaza-XXXX grafana:grafana-source prometheus

Note: "watch" because "add-relation" will be retried until the "remove-relation" hooks are finished.

Jose Guedez (jfguedez)
Changed in charm-grafana:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Eric Chen (eric-chen) wrote :

This charm is no longer being actively maintained. Please consider using the new Canonical Observability Stack instead.
(https://charmhub.io/topics/canonical-observability-stack)
I will close this issue

Changed in charm-grafana:
status: Triaged → 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.