summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-02-27 10:21:49 +0000
committerGitHub <noreply@github.com>2019-02-27 10:21:49 +0000
commitf191be822b265b50339e17b2d95125f43dc700b3 (patch)
treedc8948e39cc603fa82deddf12b47a4b756910ca3 /synapse/app
parentFix check-newsfragment script (#4750) (diff)
downloadsynapse-f191be822b265b50339e17b2d95125f43dc700b3.tar.xz
Add database version to phonehome stats. (#4753)
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 05a97979ec..e8b6cc3114 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -555,6 +555,9 @@ def run(hs):
                 stats["memory_rss"] += process.memory_info().rss
                 stats["cpu_average"] += int(process.cpu_percent(interval=None))
 
+        stats["database_engine"] = hs.get_datastore().database_engine_name
+        stats["database_server_version"] = hs.get_datastore().get_server_version()
+
         logger.info("Reporting stats to matrix.org: %s" % (stats,))
         try:
             yield hs.get_simple_http_client().put_json(