Changing "monitor-name" config option doesn't update Prometheus configuration

Bug #1662993 reported by Alberto Donato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Prometheus Charm
Fix Released
Undecided
Alberto Donato

Bug Description

If the monitor-name config option is changed post-deploy, it doesn't seem to trigger an update in Prometheus configuration. The config file and UI still report the previoius value for the "monitor" label.

This happened with a deploy installing prometheus from the snap

Revision history for this message
Alberto Donato (ack) wrote :

Update: it seems even setting monitor-name at deploy time doesn't set the "monitor" label to the correctly. it's always "prometheus-monitor".

Alberto Donato (ack)
Changed in prometheus-charm:
status: New → In Progress
Alberto Donato (ack)
Changed in prometheus-charm:
assignee: nobody → Alberto Donato (ack)
Revision history for this message
Jacek Nykis (jacekn) wrote :

LGTM, merged.

I also found another small bug with monitor-name (if set to empty string you ended up with empty tag value). Fixed that as drive by.

Charm composed and in the charm store:
cs:~prometheus-charmers/prometheus-9

Changed in prometheus-charm:
status: In Progress → 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.