template metric toggle for mautrix bridges supporting it

housekeeping^2
Adrien le Maire 2 years ago
parent e588c42088
commit 691ef13cab

@ -46,6 +46,9 @@ matrix_mautrix_facebook_homeserver_token: ''
# If false, created portal rooms will never be federated. # If false, created portal rooms will never be federated.
matrix_mautrix_facebook_federate_rooms: true matrix_mautrix_facebook_federate_rooms: true
# Whether or not metrics endpoint should be enabled.
matrix_mautrix_facebook_metrics_enabled: false
matrix_mautrix_facebook_bridge_permissions: | matrix_mautrix_facebook_bridge_permissions: |
{{ {{
{matrix_mautrix_facebook_homeserver_domain: 'user'} {matrix_mautrix_facebook_homeserver_domain: 'user'}

@ -62,7 +62,7 @@ appservice:
# Prometheus telemetry config. Requires prometheus-client to be installed. # Prometheus telemetry config. Requires prometheus-client to be installed.
metrics: metrics:
enabled: false enabled: {{ matrix_mautrix_facebook_metrics_enabled }}
listen_port: 8000 listen_port: 8000
# Bridge config # Bridge config

@ -47,6 +47,9 @@ matrix_mautrix_instagram_homeserver_token: ''
# If false, created portal rooms will never be federated. # If false, created portal rooms will never be federated.
matrix_mautrix_instagram_federate_rooms: true matrix_mautrix_instagram_federate_rooms: true
# Whether or not metrics endpoint should be enabled.
matrix_mautrix_instagram_metrics_enabled: false
# Database-related configuration fields. # Database-related configuration fields.
# #
# To use Postgres: # To use Postgres:

@ -57,7 +57,7 @@ appservice:
# Prometheus telemetry config. Requires prometheus-client to be installed. # Prometheus telemetry config. Requires prometheus-client to be installed.
metrics: metrics:
enabled: false enabled: {{ matrix_mautrix_instagram_metrics_enabled }}
listen_port: 8000 listen_port: 8000
instagram: instagram:

@ -70,6 +70,9 @@ matrix_mautrix_signal_logging_level: WARNING
# If false, created portal rooms will never be federated. # If false, created portal rooms will never be federated.
matrix_mautrix_signal_federate_rooms: true matrix_mautrix_signal_federate_rooms: true
# Whether or not metrics endpoint should be enabled.
matrix_mautrix_signal_metrics_enabled: false
# Database-related configuration fields # Database-related configuration fields
# #
# This bridge only supports postgres. # This bridge only supports postgres.

@ -67,7 +67,7 @@ appservice:
# Prometheus telemetry config. Requires prometheus-client to be installed. # Prometheus telemetry config. Requires prometheus-client to be installed.
metrics: metrics:
enabled: false enabled: {{ matrix_mautrix_signal_metrics_enabled }}
listen_port: 8000 listen_port: 8000
# Manhole config. # Manhole config.

@ -78,6 +78,9 @@ matrix_mautrix_twitter_appservice_bot_username: twitterbot
# Specifies the default log level for all bridge loggers. # Specifies the default log level for all bridge loggers.
matrix_mautrix_twitter_logging_level: WARNING matrix_mautrix_twitter_logging_level: WARNING
# Whether or not metrics endpoint should be enabled.
matrix_mautrix_twitter_metrics_enabled: false
# Default configuration template which covers the generic use case. # Default configuration template which covers the generic use case.
# You can customize it by controlling the various variables inside it. # You can customize it by controlling the various variables inside it.
# #

@ -65,7 +65,7 @@ appservice:
# Prometheus telemetry config. Requires prometheus-client to be installed. # Prometheus telemetry config. Requires prometheus-client to be installed.
metrics: metrics:
enabled: false enabled: {{ matrix_mautrix_twitter_metrics_enabled }}
listen_port: 8000 listen_port: 8000
# Bridge config # Bridge config

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

@ -67,9 +67,9 @@ segment_key: null
# Prometheus config. # Prometheus config.
metrics: metrics:
# Enable prometheus 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 # 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. # Config for things that are directly sent to WhatsApp.
whatsapp: whatsapp:

Loading…
Cancel
Save