Merge "Fix: init alert rules on rel change"

This commit is contained in:
Zuul 2022-12-01 17:13:14 +00:00 committed by Gerrit Code Review
commit 458517e89c
2 changed files with 2 additions and 0 deletions

View File

@ -2,3 +2,4 @@ libxml2-dev [platform:dpkg test]
libxslt1-dev [platform:dpkg test]
build-essential [platform:dpkg test]
zlib1g-dev [platform:dpkg test]
libffi-dev [platform:dpkg test]

View File

@ -66,6 +66,7 @@ class CephMetricsEndpointProvider(prometheus_scrape.MetricsEndpointProvider):
)
ceph_utils.mgr_enable_module("prometheus")
logger.debug("module_enabled")
self.update_alert_rules()
super()._on_relation_changed(event)
def _on_relation_departed(self, event):