29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
|
---
|
||
|
synapse_config_enable_metrics: false
|
||
|
synapse_config_sentry_environment: ~
|
||
|
synapse_config_sentry_dsn: ~
|
||
|
synapse_config_metrics_flags_known_servers: true
|
||
|
synapse_config_report_stats: true
|
||
|
synapse_config_report_stats_endpoint: >-
|
||
|
https://matrix.org/report-usage-stats/push
|
||
|
|
||
|
synapse_metrics_sentry_config: >-
|
||
|
{{ {}
|
||
|
| combine(({"environment": synapse_config_sentry_environment })
|
||
|
if synapse_config_sentry_environment | default(false, true) else {})
|
||
|
| combine(({"dsn": synapse_config_sentry_dsn })
|
||
|
if synapse_config_sentry_dsn | default(false, true) else {})
|
||
|
}}
|
||
|
|
||
|
synapse_base_metrics_config:
|
||
|
enable_metrics: "{{ synapse_config_enable_metrics }}"
|
||
|
metrics_flags:
|
||
|
known_servers: "{{ synapse_config_metrics_flags_known_servers }}"
|
||
|
report_stats: "{{ synapse_config_report_stats }}"
|
||
|
report_stats_endpoint: "{{ synapse_config_report_stats_endpoint }}"
|
||
|
synapse_metrics_config: >-
|
||
|
{{ synapse_base_metrics_config
|
||
|
| combine(({"sentry": synapse_metrics_sentry_config})
|
||
|
if (synapse_config_sentry_dsn or synapse_config_sentry_environment) else {})
|
||
|
}}
|