mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 20:22:11 -04:00
Set up the process collector during metrics __init__; that way all split-process workers have it
This commit is contained in:
parent
aac13b1f9a
commit
1cc22da600
2 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@ from .metric import (
|
|||
CounterMetric, CallbackMetric, DistributionMetric, CacheMetric,
|
||||
MemoryUsageMetric,
|
||||
)
|
||||
from .process_collector import register_process_collector
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -121,6 +122,8 @@ reactor_metrics.register_callback(
|
|||
"gc_counts", lambda: {(i,): v for i, v in enumerate(gc.get_count())}, labels=["gen"]
|
||||
)
|
||||
|
||||
register_process_collector(get_metrics_for("process"))
|
||||
|
||||
|
||||
def runUntilCurrentTimer(func):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue