summary refs log tree commit diff
path: root/synapse/metrics/common_usage_metrics.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix logging context warnings due to common usage metrics setup (#14574)Sean Quah2022-11-281-1/+3
| | | | | | | | | `setup()` is run under the sentinel context manager, so we wrap the initial update in a background process. Before this change, Synapse would log two warnings on startup: Starting db txn 'count_daily_users' from sentinel context Starting db connection from sentinel context: metrics will be lost Signed-off-by: Sean Quah <seanq@matrix.org>
* Share some metrics between the Prometheus exporter and the phone home stats ↵Brendan Abolivier2022-09-051-0/+79
(#13671)