Commit 24746910 authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos Committed by Kristian Klausen
Browse files

prometheus: add matrix metrics and dashboard

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

[1] https://github.com/matrix-org/synapse/tree/c167e09fe58d3a256fb1c763b391ad6633d2507d/contrib/grafana

Closes: #290

Signed-off-by: Leonidas Spyropoulos's avatarLeonidas Spyropoulos <artafinde@gmail.com>
parent caa81be7
This diff is collapsed.
...@@ -60,3 +60,9 @@ blackbox_targets: ...@@ -60,3 +60,9 @@ blackbox_targets:
smtp_starttls: smtp_starttls:
- mail.archlinux.org:25 - mail.archlinux.org:25
- lists.archlinux.org:25 - lists.archlinux.org:25
matrix_metrics_endpoints:
- homeserver
- appservice
- federation_reader
- federation_writer
- media_repository
...@@ -153,4 +153,16 @@ scrape_configs: ...@@ -153,4 +153,16 @@ scrape_configs:
- target_label: __address__ - target_label: __address__
replacement: 127.0.0.1:9115 replacement: 127.0.0.1:9115
{% endfor %} {% 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 %} {% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment