diff options
author | reivilibre <38398653+reivilibre@users.noreply.github.com> | 2021-07-19 16:11:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 16:11:34 +0100 |
commit | 4e340412c020f685cb402a735b983f6e332e206b (patch) | |
tree | e23f86f1e79d9af7293adb9fcf16a6429904f6c5 /synapse/app/phone_stats_home.py | |
parent | [pyupgrade] `synapse/` (#10348) (diff) | |
download | synapse-4e340412c020f685cb402a735b983f6e332e206b.tar.xz |
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>
Diffstat (limited to 'synapse/app/phone_stats_home.py')
-rw-r--r-- | synapse/app/phone_stats_home.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/phone_stats_home.py b/synapse/app/phone_stats_home.py index 8f86cecb76..7904c246df 100644 --- a/synapse/app/phone_stats_home.py +++ b/synapse/app/phone_stats_home.py @@ -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 |