Multiple prometheus-client relations results in only one having relation data

Bug #1939262 reported by Xav Paice
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
High
Unassigned

Bug Description

If I relate Telegraf using the prometheus-client relation (http interface) to more than one application, the first gets 'hostname' and 'port' information in the relation data, but the second (and subsequent) applications do not get these fields filled in.

Potentially caused by the following lines:

  @when_not("prometheus-client.available")
  @when_not("plugins.prometheus-client.configured")
  def configure_prometheus_client():
      # stuff
      set_flag("plugins.prometheus-client.configured")

This would set the flag after the first relation is joined, and not re-run configure_prometheus_client() when the next relation joins.

Related branches

Revision history for this message
Xav Paice (xavpaice) wrote :

Assigned high priority because this is preventing deployment of the new K8s based Prometheus alongside the existing one, therefore delaying development.

Changed in charm-telegraf:
status: New → Triaged
importance: Undecided → High
Xav Paice (xavpaice)
Changed in charm-telegraf:
status: Triaged → Fix Released
milestone: none → 21.10
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.