By looking into the code, it looks like the charm is supposed to download the charm resource from the Juju controller into:
/var/lib/juju/agents/unit-ceph-mon-*/charm/files/prometheus_alert_rules/alert.yaml.rules
But there was no file there in any of the units.
However, explicitly running the upgrade-charm hook will call self.metrics_endpoint.update_alert_rules() and the file "alert.yaml.rules" will show up and the relation data is populated.
By looking into the code, it looks like the charm is supposed to download the charm resource from the Juju controller into: juju/agents/ unit-ceph- mon-*/charm/ files/prometheu s_alert_ rules/alert. yaml.rules
/var/lib/
But there was no file there in any of the units.
However, explicitly running the upgrade-charm hook will call self.metrics_ endpoint. update_ alert_rules( ) and the file "alert.yaml.rules" will show up and the relation data is populated.
$ juju exec -u ceph-mon/leader "JUJU_DISPATCH_ PATH=hooks/ upgrade- charm ./dispatch"
I'm not sure why the initial update_ alert_rules( ) is not called or processed.