diff options
author | reivilibre <oliverw@matrix.org> | 2022-08-24 11:35:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 11:35:54 +0000 |
commit | be4250c7a888e314e361df42042bfa344ab65d55 (patch) | |
tree | cb3cb0b0566d0b7522a2a3cc452c44553cf72683 /synapse/app/homeserver.py | |
parent | Add GitHub automation for new issues (#13610) (diff) | |
download | synapse-be4250c7a888e314e361df42042bfa344ab65d55.tar.xz |
Add experimental configuration option to allow disabling legacy Prometheus metric names. (#13540)
Co-authored-by: David Robertson <davidr@element.io>
Diffstat (limited to 'synapse/app/homeserver.py')
-rw-r--r-- | synapse/app/homeserver.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 68993d91a9..e57a926032 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -307,7 +307,11 @@ class SynapseHomeServer(HomeServer): "enable_metrics is not True!" ) else: - _base.listen_metrics(listener.bind_addresses, listener.port) + _base.listen_metrics( + listener.bind_addresses, + listener.port, + enable_legacy_metric_names=self.config.metrics.enable_legacy_metrics, + ) else: # this shouldn't happen, as the listener type should have been checked # during parsing |