Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
timelessnesses authored Nov 10, 2024
1 parent 08c9d79 commit dc825a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def threads():
ALIVE = prometheus_client.Gauge("alive_threads", "Threads that is actually alive")

def handle(_: Info):
METRIC.set(0)
DAEMON.set(0)
ALIVE.set(0)
for thread in threading.enumerate():
if thread.is_alive():
ALIVE.inc()
Expand Down

0 comments on commit dc825a3

Please sign in to comment.