Skip to content

Commit

Permalink
prometheus: do not init duplicate ProcessCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
azhuzhu committed Jan 19, 2024
1 parent 804c2ba commit 66e6585
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions message_tagging_service/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
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 @@ -37,7 +36,6 @@
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 66e6585

Please sign in to comment.