mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 14:20:23 +00:00
Update comment
This commit is contained in:
parent
c8f9b45bc2
commit
689f4cb914
1 changed files with 2 additions and 1 deletions
|
@ -415,7 +415,8 @@ def run(hs):
|
||||||
stats.pop("daily_messages", None)
|
stats.pop("daily_messages", None)
|
||||||
|
|
||||||
if first_time:
|
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
|
# As some of the stats are expensive to calculate we only update
|
||||||
# them when synapse phones home to matrix.org every 24 hours.
|
# them when synapse phones home to matrix.org every 24 hours.
|
||||||
metrics = get_metrics_for("synapse.usage")
|
metrics = get_metrics_for("synapse.usage")
|
||||||
|
|
Loading…
Reference in a new issue