synapse workers: define and expose METRICS port for each worker

As seen on TV:
https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.md#monitoring-workers
This commit is contained in:
Marcel Partap
2020-12-01 22:49:15 +01:00
parent af08f18779
commit f201bca519
3 changed files with 23 additions and 15 deletions

View File

@ -21,6 +21,10 @@ worker_listeners:
{% endif %}
{% endif %}
- type: metrics
bind_address: ''
port: {{ item.metrics_port }}
{% if item.type == 'frontend_proxy' %}
worker_main_http_uri: http://127.0.0.1:8008
{% endif %}