Prevent Synapse warning about enabling metric listeners with enable_metrics: false

> synapse.app.generic_worker - 606 - WARNING - None - Metrics listener configured, but enable_metrics is not True!
development
Slavi Pantaleev 4 years ago
parent 70796703d3
commit 01747c8cc4

@ -19,11 +19,12 @@ worker_listeners:
{% elif matrix_synapse_worker_details.type in [ 'media_repository' ] %} {% elif matrix_synapse_worker_details.type in [ 'media_repository' ] %}
- media - media
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if matrix_synapse_metrics_enabled %}
- type: metrics - type: metrics
bind_address: ['127.0.0.1'] bind_address: ['127.0.0.1']
port: {{ matrix_synapse_worker_details.metrics_port }} port: {{ matrix_synapse_worker_details.metrics_port }}
{% endif %}
{% if matrix_synapse_worker_details.type == 'frontend_proxy' %} {% if matrix_synapse_worker_details.type == 'frontend_proxy' %}
worker_main_http_uri: http://matrix-synapse:8008 worker_main_http_uri: http://matrix-synapse:8008

Loading…
Cancel
Save