mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 16:40:56 -05:00
Track where event stream processing have gotten up to
This commit is contained in:
parent
ab825aa328
commit
92e34615c5
4 changed files with 24 additions and 0 deletions
|
|
@ -151,6 +151,19 @@ reactor_metrics = get_metrics_for("python.twisted.reactor")
|
|||
tick_time = reactor_metrics.register_distribution("tick_time")
|
||||
pending_calls_metric = reactor_metrics.register_distribution("pending_calls")
|
||||
|
||||
synapse_metrics = get_metrics_for("synapse")
|
||||
|
||||
# Used to track where various components have processed in the event stream,
|
||||
# e.g. federation sending, appservice sending, etc.
|
||||
event_processing_positions = synapse_metrics.register_gauge(
|
||||
"event_processing_positions", labels=["name"],
|
||||
)
|
||||
|
||||
# Used to track the current max events stream position
|
||||
event_persisted_position = synapse_metrics.register_gauge(
|
||||
"event_persisted_position",
|
||||
)
|
||||
|
||||
|
||||
def runUntilCurrentTimer(func):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue