Skip to content

Commit

Permalink
Revert "prometheus: do not init duplicate ProcessCollector"
Browse files Browse the repository at this point in the history
This reverts commit 66e6585.
  • Loading branch information
azhuzhu committed Jul 11, 2024
1 parent f05471f commit 53d64cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions message_tagging_service/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import tempfile

from prometheus_client import CollectorRegistry
from prometheus_client import ProcessCollector
from prometheus_client import multiprocess
from prometheus_client import Counter
from prometheus_client import generate_latest
Expand All @@ -36,6 +37,7 @@
os.environ.setdefault('prometheus_multiproc_dir', dir_name)

registry = CollectorRegistry()
ProcessCollector(registry=registry)
multiprocess.MultiProcessCollector(registry)

failed_tag_build_requests_counter = Counter(
Expand Down

0 comments on commit 53d64cc

Please sign in to comment.