diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-08-22 16:17:31 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-08-22 16:17:31 +0100 |
commit | 689f4cb9147d4c9a04edde3a3728f5ca0bdbbe2f (patch) | |
tree | e0700e95cb598ca65334ca21af73eb37c91bb11f /synapse/app | |
parent | Add usage stats to prometheus monitoring (diff) | |
download | synapse-689f4cb9147d4c9a04edde3a3728f5ca0bdbbe2f.tar.xz |
Update comment
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/homeserver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index ce4ba60920..54f35900f8 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -415,7 +415,8 @@ def run(hs): stats.pop("daily_messages", None) if first_time: - # Report the stats as synapse metrics. + # Add callbacks to report the synapse stats as metrics whenever + # prometheus requests them, typically every 30s. # As some of the stats are expensive to calculate we only update # them when synapse phones home to matrix.org every 24 hours. metrics = get_metrics_for("synapse.usage") |