You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.7 KiB
42 lines
1.7 KiB
3 years ago
|
global:
|
||
|
scrape_interval: 5s
|
||
|
|
||
|
# Attach these labels to any time series or alerts when communicating with
|
||
|
# external systems (federation, remote storage, Alertmanager).
|
||
|
external_labels:
|
||
|
monitor: 'synapse-{{ matrix_domain }}'
|
||
|
|
||
|
rule_files:
|
||
|
- /etc/prometheus/synapse-v2.rules
|
||
|
|
||
|
scrape_configs:
|
||
|
- job_name: 'synapse'
|
||
2 years ago
|
metrics_path: /metrics/synapse/main-process
|
||
|
scheme: {{ 'https' if matrix_nginx_proxy_https_enabled|default(true) else 'http' }}
|
||
|
{% if matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled|default(true) %}
|
||
3 years ago
|
basic_auth:
|
||
|
username: prometheus
|
||
|
password_file: /path/to/your/passwordfile.pwd
|
||
|
{% endif %}
|
||
|
static_configs:
|
||
2 years ago
|
- targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port|default(443) if matrix_nginx_proxy_https_enabled|default(true) else matrix_nginx_proxy_container_http_host_bind_port|default(80) }}']
|
||
3 years ago
|
labels:
|
||
|
job: "master"
|
||
3 years ago
|
index: "0"
|
||
2 years ago
|
{% for worker in matrix_synapse_workers_enabled_list %}
|
||
2 years ago
|
- job_name: '{{ worker.name }}'
|
||
|
metrics_path: /metrics/synapse/worker/{{ worker.id }}
|
||
2 years ago
|
scheme: {{ 'https' if matrix_nginx_proxy_https_enabled|default(true) else 'http' }}
|
||
|
{% if matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled|default(true) %}
|
||
3 years ago
|
basic_auth:
|
||
|
username: prometheus
|
||
|
password_file: /path/to/your/passwordfile.pwd
|
||
|
{% endif %}
|
||
|
static_configs:
|
||
2 years ago
|
- targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port|default(443) if matrix_nginx_proxy_https_enabled|default(true) else matrix_nginx_proxy_container_http_host_bind_port|default(80) }}']
|
||
3 years ago
|
labels:
|
||
2 years ago
|
worker_id: {{ worker.id }}
|
||
3 years ago
|
job: "{{ worker.type }}"
|
||
2 years ago
|
app: {{ worker.app }}
|
||
3 years ago
|
{% endfor %}
|