mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 06:57:48 -04:00
Add a new version of the R30 phone-home metric, which removes a false impression of retention given by the old R30 metric (#10332)
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
95e47b2e78
commit
4e340412c0
6 changed files with 416 additions and 5 deletions
|
@ -107,6 +107,10 @@ async def phone_stats_home(hs, stats, stats_process=_stats_process):
|
|||
for name, count in r30_results.items():
|
||||
stats["r30_users_" + name] = count
|
||||
|
||||
r30v2_results = await hs.get_datastore().count_r30_users()
|
||||
for name, count in r30v2_results.items():
|
||||
stats["r30v2_users_" + name] = count
|
||||
|
||||
stats["cache_factor"] = hs.config.caches.global_factor
|
||||
stats["event_cache_size"] = hs.config.caches.event_cache_size
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue