mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-24 01:48:29 +01:00
make them show as jobs in grafana
This commit is contained in:
parent
7b52e6ad5e
commit
3d063f6ace
@ -30,15 +30,20 @@ scrape_configs:
|
||||
- job_name: 'synapse'
|
||||
metrics_path: '/_synapse/metrics'
|
||||
static_configs:
|
||||
- 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 %}
|
||||
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
|
||||
labels:
|
||||
instance: {{ matrix_domain }}
|
||||
job: master
|
||||
index: 1
|
||||
{% for worker in matrix_synapse_workers_enabled_list|d([]) %}
|
||||
{% if worker.metrics_port != 0 %}
|
||||
- targets: ['matrix-synapse-worker-{{ worker.type }}-{{ worker.instanceId }}:{{ worker.metrics_port }}']
|
||||
labels:
|
||||
instance: {{ matrix_domain }}
|
||||
job: {{ worker.type }}
|
||||
index: {{ worker.instanceId }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if matrix_prometheus_scraper_node_enabled %}
|
||||
|
Loading…
Reference in New Issue
Block a user