Skip to content

Commit

Permalink
fix: refresh Prometheus scrape endpoint after IP change (#396)
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Faccin <[email protected]>
  • Loading branch information
dariofaccin authored Nov 7, 2024
1 parent 09a2dbe commit bde25c0
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 @@ -83,6 +83,7 @@ def __init__(self, *args):
)
self._metrics_endpoint = MetricsEndpointProvider(
self,
refresh_event=[self.on.update_status],
jobs=[
{
"static_configs": [{"targets": [f"*:{PROMETHEUS_PORT}"]}],
Expand Down

0 comments on commit bde25c0

Please sign in to comment.