Skip to content

Commit

Permalink
fix: refresh Prometheus scrape endpoint after IP change (#451)
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
  • Loading branch information
dariofaccin authored Nov 6, 2024
1 parent 4982e1b commit 42d5405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]}],
Expand Down

0 comments on commit 42d5405

Please sign in to comment.