1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-26 10:46:06 +02:00

prometheus: add matrix metrics and dashboard

The dashboards is from [1] and fixed with:
sed 's/${DS_PROMETHEUS}/$datasource/g' -i synapse.json

[1] c167e09fe5/contrib/grafana

Closes: #290

Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
This commit is contained in:
Leonidas Spyropoulos 2021-07-30 12:30:55 +03:00 committed by Kristian Klausen
parent caa81be756
commit 24746910c7
3 changed files with 10492 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -60,3 +60,9 @@ blackbox_targets:
smtp_starttls:
- mail.archlinux.org:25
- lists.archlinux.org:25
matrix_metrics_endpoints:
- homeserver
- appservice
- federation_reader
- federation_writer
- media_repository

View File

@ -153,4 +153,16 @@ scrape_configs:
- target_label: __address__
replacement: 127.0.0.1:9115
{% endfor %}
{% for endpoint in matrix_metrics_endpoints %}
- job_name: 'synapse_{{ endpoint }}'
scrape_interval: 15s
metrics_path: "/metrics/synapse.{{ endpoint }}"
scheme: https
basic_auth:
username: {{ vault_matrix_secrets.metrics_user }}
password: {{ vault_matrix_secrets.metrics_password }}
static_configs:
- targets: ["matrix.archlinux.org:443"]
{% endfor %}
{% endif %}