add monthly active users to phonehome stats (#5252)

* add monthly active users to phonehome stats
This commit is contained in:
Neil Johnson 2019-06-10 23:33:59 +01:00 committed by GitHub
parent abce00fc6a
commit 94dac0f3e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 15 deletions

View file

@ -541,6 +541,7 @@ def run(hs):
stats["total_room_count"] = room_count
stats["daily_active_users"] = yield hs.get_datastore().count_daily_users()
stats["monthly_active_users"] = yield hs.get_datastore().count_monthly_users()
stats["daily_active_rooms"] = yield hs.get_datastore().count_daily_active_rooms()
stats["daily_messages"] = yield hs.get_datastore().count_daily_messages()