From 42d5405329b3e7c29f04b10051b78d19234ef500 Mon Sep 17 00:00:00 2001 From: Dario Faccin <35623244+dariofaccin@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:26:05 +0100 Subject: [PATCH] fix: refresh Prometheus scrape endpoint after IP change (#451) Signed-off-by: Dario Faccin --- src/charm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charm.py b/src/charm.py index 0bb321f..f45794e 100755 --- a/src/charm.py +++ b/src/charm.py @@ -103,6 +103,7 @@ def __init__(self, *args): ) self._amf_metrics_endpoint = MetricsEndpointProvider( self, + refresh_event=[self.on.update_status], jobs=[ { "static_configs": [{"targets": [f"*:{PROMETHEUS_PORT}"]}],