summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-04-05 15:37:37 +0100
committerGitHub <noreply@github.com>2018-04-05 15:37:37 +0100
commit68b0ee4e8d9b072d458b1ef6da968d10c584e4ba (patch)
treec0e3d405b2c6aa6bfb397975881b7d5d5b66ee33 /synapse/app
parentMerge pull request #3060 from matrix-org/rav/kill_event_content (diff)
parentReview comments (diff)
downloadsynapse-68b0ee4e8d9b072d458b1ef6da968d10c584e4ba.tar.xz
Merge pull request #3041 from matrix-org/r30_stats
R30 stats
Diffstat (limited to 'synapse/app')
-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 464799ac90..a0e465d644 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -430,6 +430,10 @@ def run(hs):
         stats["daily_active_rooms"] = yield hs.get_datastore().count_daily_active_rooms()
         stats["daily_messages"] = yield hs.get_datastore().count_daily_messages()
 
+        r30_results = yield hs.get_datastore().count_r30_users()
+        for name, count in r30_results.iteritems():
+            stats["r30_users_" + name] = count
+
         daily_sent_messages = yield hs.get_datastore().count_daily_sent_messages()
         stats["daily_sent_messages"] = daily_sent_messages
         stats["cache_factor"] = CACHE_SIZE_FACTOR