feat(synapse): provide variable for controlling metrics

This commit is contained in:
Johanna Dorothea Reichmann 2021-09-10 10:19:57 +02:00
parent 55b54b457e
commit 67803032cf
No known key found for this signature in database
GPG key ID: 03624C433676E465
3 changed files with 6 additions and 3 deletions

View file

@ -50,6 +50,7 @@ If deploying synapse in a docker container, check that you have `docker` and the
| `matrix_synapse_redis_host` | _None_ | host on which redis is running |
| `matrix_synapse_redis_port` | 6379 | port on which redis is running |
| `matrix_synapse_redis_pass` | _None_ | password to use to authentificate to redis |
| `matrix_synapse_metrics_enabled` | `false` | If prometheus metrics should be enabled. |
### Worker control variables

View file

@ -38,11 +38,13 @@ matrix_synapse_redis_host: ~
matrix_synapse_redis_port: 6379
matrix_synapse_redis_pass: ~
# Monitoring
matrix_synapse_metrics_enabled: false
matrix_synapse_worker_metrics_enabled: "{{ matrix_synapse_metrics_enabled | bool }}"
matrix_synapse_worker_metrics_port: 9101
# Worker control config
matrix_synapse_workers_enabled: false
matrix_synapse_worker_metrics_enabled: false
matrix_synapse_worker_metrics_port: 9101
matrix_synapse_worker_replication_host: "{{ matrix_synapse_container_name }}"
matrix_synapse_worker_replication_port: 9003
matrix_synapse_worker_replication_bind_ip: "127.0.0.1"

View file

@ -143,7 +143,7 @@ matrix_synapse_base_config:
- matrix.org
- vector.im
autocreate_auto_join_rooms: true
enable_metrics: False
enable_metrics: "{{ matrix_synapse_metrics_enabled }}"
report_stats: "{{ matrix_synapse_report_stats }}"
app_service_config_files: []
track_appservice_user_ips: False