diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-15 09:39:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-15 09:39:39 +0100 |
commit | 4b461a69311fc96ce13ed75ebe388fd6718286d1 (patch) | |
tree | da4a0c9c2bbebb7dd97ec740512204f4c9a1d0dc /synapse/app/homeserver.py | |
parent | Remove unhelpful test (diff) | |
download | synapse-4b461a69311fc96ce13ed75ebe388fd6718286d1.tar.xz |
Add some more stats
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-x | synapse/app/homeserver.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index c9a2f148d7..6af8259be0 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -415,8 +415,15 @@ def run(hs): stats["timestamp"] = now stats["uptime_seconds"] = uptime stats["total_users"] = yield hs.get_datastore().count_all_users() + stats["total_users"] = yield hs.get_datastore().count_nonbridged_users() + + room_count = yield hs.get_datastore().get_room_count() + stats["total_room_count"] = room_count + stats["daily_active_users"] = yield hs.get_datastore().count_daily_users() + stats["daily_active_rooms"] = yield hs.get_datastore().count_daily_active_rooms() stats["daily_messages"] = yield hs.get_datastore().count_daily_messages() + daily_sent_messages = yield hs.get_datastore().count_daily_sent_messages() stats["daily_sent_messages"] = daily_sent_messages |