Skip to content

Commit

Permalink
fix prometheus port on dataset monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Feb 5, 2025
1 parent bfe0ca7 commit 7d3f0af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iceprod/scheduled_tasks/dataset_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def main():

rest_client = create_rest_client(args)

logging.info("starting prometheus on {}", args.prometheus_port)
start_http_server(args.prometheus_port)
if args.prometheus_port:
logging.info("starting prometheus on {}", args.prometheus_port)
start_http_server(int(args.prometheus_port))
i = Info('iceprod', 'IceProd information')
i.info({
'version': version_string,
Expand Down

0 comments on commit 7d3f0af

Please sign in to comment.