Skip to content

Commit

Permalink
fix: use -1 for prom gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchet-temporary committed Dec 23, 2024
1 parent 4d40ca8 commit 0883717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hatchet_sdk/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def health_check_handler(self, request: Request) -> Response:
return web.json_response({"status": status.name})

async def metrics_handler(self, request: Request) -> Response:
self.worker_status_gauge.set(1 if self.status() == WorkerStatus.HEALTHY else 0)
self.worker_status_gauge.set(1 if self.status() == WorkerStatus.HEALTHY else -1)

return web.Response(body=generate_latest(), content_type="text/plain")

Expand Down

0 comments on commit 0883717

Please sign in to comment.