summary refs log tree commit diff
path: root/synapse/metrics/_gc.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update type annotations for compatiblity with prometheus_client 0.14 (#12389)Richard van der Hoff2022-04-061-2/+4
| | | | | | | Principally, `prometheus_client.REGISTRY.register` now requires its argument to extend `prometheus_client.Collector`. Additionally, `Gauge.set` is now annotated so that passing `Optional[int]` causes an error.
* Simplify GC prometheus metrics (#11723)Richard van der Hoff2022-01-131-0/+203
Rather than hooking into the reactor loop, just add a timed task that runs every 100 ms to do the garbage collection. Part 1 of a quest to simplify the reactor monkey-patching.