template metric toggle for mautrix bridges supporting it

This commit is contained in:
Adrien le Maire
2023-01-29 09:45:52 +01:00
parent e588c42088
commit 691ef13cab
10 changed files with 22 additions and 6 deletions

View File

@ -47,6 +47,10 @@ matrix_mautrix_whatsapp_logging_level: 'warn'
# If false, created portal rooms will never be federated.
matrix_mautrix_whatsapp_federate_rooms: true
# Whether or not metrics endpoint should be enabled.
matrix_mautrix_whatsapp_metrics_enabled: false
# Database-related configuration fields.
#
# To use SQLite, stick to these defaults.

View File

@ -67,9 +67,9 @@ segment_key: null
# Prometheus config.
metrics:
# Enable prometheus metrics?
enabled: false
enabled: {{ matrix_mautrix_whatsapp_metrics_enabled }}
# IP and port where the metrics listener should be. The path is always /metrics
listen: 127.0.0.1:8001
listen: 0.0.0.0:8001
# Config for things that are directly sent to WhatsApp.
whatsapp: