r/synapse: Enable Prometheus metrics

Synapse supports exporting metrics in Prometheus format.  It can do this
either as part of the main server, or in a separate listener.  I chose
to use a separate listener so that the metrics are not exposed
publicly.
ntfy
Dustin 2021-10-18 18:03:57 -05:00
parent 6df0d7bea4
commit 3127b9b8f7
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,10 @@ listeners:
resources:
- names: [client, federation]
compress: false
- type: metrics
port: 9000
bind_addresses:
- 0.0.0.0
retention:
@ -38,6 +42,7 @@ registration_shared_secret: '{{ synapse_registration_shared_secret }}'
account_threepid_delegates:
enable_metrics: true
metrics_flags:
report_stats: false