summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-06-01 13:42:01 +0000
committerGitHub <noreply@github.com>2018-06-01 13:42:01 +0000
commit71477f331707e27f1181d0770799d17a4a03cf59 (patch)
treeddf90fdbe0ac5cebcd315c339bd83b12925c7149 /synapse/app/homeserver.py
parentMerge pull request #3318 from matrix-org/rav/ignore_depth_on_rrs (diff)
parentremove unnecessary INSERT (diff)
downloadsynapse-71477f331707e27f1181d0770799d17a4a03cf59.tar.xz
Merge pull request #3264 from matrix-org/neil/sign-up-stats
daily user type phone home stats
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 51fc3645d5..714f98a3e0 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -439,6 +439,10 @@ def run(hs):
         total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users()
         stats["total_nonbridged_users"] = total_nonbridged_users
 
+        daily_user_type_results = yield hs.get_datastore().count_daily_user_type()
+        for name, count in daily_user_type_results.iteritems():
+            stats["daily_user_type_" + name] = count
+
         room_count = yield hs.get_datastore().get_room_count()
         stats["total_room_count"] = room_count