Skip to content

Commit

Permalink
fix: refresh Prometheus scrape endpoint after IP change (#362)
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 94be91d commit 1a37904
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 @@ -86,6 +86,7 @@ def __init__(self, *args):
)
self._udr_metrics_endpoint = MetricsEndpointProvider(
self,
refresh_event=[self.on.update_status],
jobs=[
{
"static_configs": [{"targets": [f"*:{PROMETHEUS_PORT}"]}],
Expand Down

0 comments on commit 1a37904

Please sign in to comment.