Relation with multiple units creates only 1 datasource

Bug #1784356 reported by Mario Bris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grafana-source Interface
New
Undecided
Unassigned

Bug Description

Datasource name comes from service_name + juju generated source. This is problem if relation between grafana and prometheus with multiple units (prometheus/0 and prometheus/1) because datasource name has to be uniq and only 1 is added.
Adding suffix 0 and up to to each unit (service_name) during communication will ensure there will be datasource for each unit.
As example is ~brism branch with the code.

Other option would be add "unit_name" or "num" variable and work with them inside grafana charm

Tags: 4010
Ante Karamatić (ivoks)
tags: added: 4010
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.