summary refs log tree commit diff
path: root/synapse/metrics
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-06-07 18:12:23 +0100
committerGitHub <noreply@github.com>2023-06-07 17:12:23 +0000
commitd162aecaac52fb467822e319e4c3c5b216c33ca9 (patch)
tree8a92ee76319fb5ed9f0c26de7df0067758b46296 /synapse/metrics
parentRemove superfluous `room_memberships` join from background update (#15733) (diff)
downloadsynapse-d162aecaac52fb467822e319e4c3c5b216c33ca9.tar.xz
Quick & dirty metric for background update status (#15740)
* Quick & dirty metric for background update status

* Changelog

* Remove debug

Co-authored-by: Mathieu Velten <mathieuv@matrix.org>

* Actually write to _aborted

---------

Co-authored-by: Mathieu Velten <mathieuv@matrix.org>
Diffstat (limited to 'synapse/metrics')
-rw-r--r--synapse/metrics/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 8ce5887229..39fc629937 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -77,6 +77,8 @@ RegistryProxy = cast(CollectorRegistry, _RegistryProxy)
 
 @attr.s(slots=True, hash=True, auto_attribs=True)
 class LaterGauge(Collector):
+    """A Gauge which periodically calls a user-provided callback to produce metrics."""
+
     name: str
     desc: str
     labels: Optional[Sequence[str]] = attr.ib(hash=False)