Skip to content

Commit

Permalink
Merge branch 'worker_prom' into maubot
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jun 30, 2021
2 parents 729f14a + 09ee5ce commit 0169a00
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion roles/matrix-prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ scrape_configs:
metrics_path: '/_synapse/metrics'
static_configs:
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
labels:
instance: {{ matrix_domain }}
job: master
index: 0
{% 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 %}
Expand All @@ -43,4 +56,4 @@ scrape_configs:
- job_name: postgres
static_configs:
- targets: {{ matrix_prometheus_scraper_postgres_targets|to_json }}
{% endif %}
{% endif %}

0 comments on commit 0169a00

Please sign in to comment.