Skip to content

Commit

Permalink
fixup! settings: Synchronize Prometheus and inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
bersace committed Jun 28, 2024
1 parent 88d350e commit 059348b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ui/temboardui/handlers/settings/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ def json_instance(request):
request.db_session, instance, plugins, request.config.temboard.plugins
)

request.handler.application.temboard_app.prometheus.trigger_reload()

return {"instance": instance.asdict()}


Expand Down
2 changes: 1 addition & 1 deletion ui/temboardui/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, app):
self.pid = None

def trigger_reload(self):
logger.debug("Triggering Prometheus configuration reload.")
logger.debug("Triggering Prometheus configuration reload. pid=%s", self.pid)
os.kill(self.pid, signal.SIGHUP)

@property
Expand Down

0 comments on commit 059348b

Please sign in to comment.