summary refs log tree commit diff
path: root/tests/metrics (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a unit test for the phone home stats (#18463)Andrew Morgan2025-05-201-0/+263
|
* Revert "Add total event, unencrypted message, and e2ee event counts to stats ↵Devon Hudson2025-04-161-258/+0
| | | | | | | | | | | reporting" (#18346) Reverts element-hq/synapse#18260 It is causing a failure when building release debs for `debian:bullseye` with the following error: ``` sqlite3.OperationalError: near "RETURNING": syntax error ```
* Add total event, unencrypted message, and e2ee event counts to stats ↵Andrew Morgan2025-04-151-0/+258
| | | | | | reporting (#18260) Co-authored-by: Eric Eastwood <erice@element.io>
* Cleanup Python 3.8 leftovers (#17967)V024602025-02-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some small cleanups after Python3.8 became EOL. - Move some type imports from `typing_extensions` to `typing` - Remove the `abi3-py38` feature from pyo3 ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Quentin Gliech <quenting@element.io>
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Update license headersPatrick Cloke2023-11-211-11/+16
|
* Remove support for Python 3.7 (#15851)Eric Eastwood2023-07-051-8/+2
| | | Fix https://github.com/matrix-org/synapse/issues/15836
* Add missing type hints to tests. (#14687)Patrick Cloke2022-12-281-8/+16
| | | Adds type hints to tests.metrics and tests.crypto.
* Avoid incrementing bg process utime/stime counters by negative durations ↵David Robertson2022-10-313-0/+225
| | | | (#14323)
* rest of the changesAmber Brown2018-05-212-192/+0
|
* Escape label values in prometheus metricsErik Johnston2018-05-021-1/+20
|
* report metrics on number of cache evictionsRichard van der Hoff2018-02-051-0/+12
|
* Change CacheMetrics to be quickerErik Johnston2016-06-031-13/+10
| | | | | | We change it so that each cache has an individual CacheMetric, instead of having one global CacheMetric. This means that when a cache tries to increment a counter it does not need to go through so many indirections.
* Add a test for TreeCache.__contains__Mark Haines2016-02-221-0/+3
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Add an .inc_by() method to CounterMetric; implement DistributionMetric a ↵Paul "LeoNerd" Evans2015-03-121-3/+2
| | | | neater way
* Rename TimerMetric to DistributionMetric; as it could count more than just timePaul "LeoNerd" Evans2015-03-121-12/+12
|
* Export CacheMetric as hits+total, rather than hits+misses, as it's easier to ↵Paul "LeoNerd" Evans2015-03-121-3/+3
| | | | derive hit ratio from that
* Prometheus needs "escaped" label valuesPaul "LeoNerd" Evans2015-03-121-27/+27
|
* Bugfix to rendering output of vectored TimerMetricsPaul "LeoNerd" Evans2015-03-121-4/+4
|
* Rename Metrics' "keys" to "labels"Paul "LeoNerd" Evans2015-03-121-3/+3
|
* Initial hack at a TimerMetric; for storing counts + duration accumulatorsPaul "LeoNerd" Evans2015-03-121-1/+35
|
* Implement vector CallbackMetricsPaul "LeoNerd" Evans2015-03-121-1/+17
|
* Rename CacheCounterMetric to just CacheMetric; add a CallbackMetric ↵Paul "LeoNerd" Evans2015-03-121-9/+15
| | | | component to give the size of the cache
* Initial attempt at a scalar callback-based metric to give instantaneous ↵Paul "LeoNerd" Evans2015-03-121-1/+21
| | | | snapshot gauges
* Create the concept of a cachecounter metric; generating two counters ↵Paul "LeoNerd" Evans2015-03-121-1/+26
| | | | specific to caches
* Initial tiny attempt at (vectorable) counter metricsPaul "LeoNerd" Evans2015-03-122-0/+61