From 994a926080f057573de856b02de439c821dec4bf Mon Sep 17 00:00:00 2001 From: Ibrahim Awwad Date: Mon, 10 Jun 2024 18:09:01 +0300 Subject: [PATCH] ensure dashboards is updated on config changed (#335) --- lib/charms/grafana_k8s/v0/grafana_dashboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/charms/grafana_k8s/v0/grafana_dashboard.py b/lib/charms/grafana_k8s/v0/grafana_dashboard.py index 1f1bc4f0..cdd85d4e 100644 --- a/lib/charms/grafana_k8s/v0/grafana_dashboard.py +++ b/lib/charms/grafana_k8s/v0/grafana_dashboard.py @@ -1050,6 +1050,7 @@ def __init__( self.framework.observe(self._charm.on.leader_elected, self._update_all_dashboards_from_dir) self.framework.observe(self._charm.on.upgrade_charm, self._update_all_dashboards_from_dir) + self.framework.observe(self._charm.on.config_changed, self._update_all_dashboards_from_dir) self.framework.observe( self._charm.on[self._relation_name].relation_created,