mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 12:35:51 +00:00
Add worker metrics to prometheus exporter
This commit is contained in:
parent
154c2bbe36
commit
7b52e6ad5e
@ -30,7 +30,15 @@ scrape_configs:
|
|||||||
- job_name: 'synapse'
|
- job_name: 'synapse'
|
||||||
metrics_path: '/_synapse/metrics'
|
metrics_path: '/_synapse/metrics'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
|
- targets:
|
||||||
|
{% for target in matrix_prometheus_scraper_synapse_targets %}
|
||||||
|
- {{ target }}
|
||||||
|
{% endfor %}
|
||||||
|
{% for worker in matrix_synapse_workers_enabled_list|d([]) %}
|
||||||
|
{% if worker.metrics_port != 0 %}
|
||||||
|
- 'matrix-synapse-worker-{{ worker.type }}-{{ worker.instanceId }}:{{ worker.metrics_port }}'
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if matrix_prometheus_scraper_node_enabled %}
|
{% if matrix_prometheus_scraper_node_enabled %}
|
||||||
|
Loading…
Reference in New Issue
Block a user