|
|
@ -31,6 +31,19 @@ scrape_configs:
|
|
|
|
metrics_path: '/_synapse/metrics'
|
|
|
|
metrics_path: '/_synapse/metrics'
|
|
|
|
static_configs:
|
|
|
|
static_configs:
|
|
|
|
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
|
|
|
|
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
|
|
|
|
|
|
|
|
labels:
|
|
|
|
|
|
|
|
instance: {{ matrix_domain }}
|
|
|
|
|
|
|
|
job: master
|
|
|
|
|
|
|
|
index: 0
|
|
|
|
|
|
|
|
{% for worker in matrix_prometheus_scraper_synapse_workers_enabled_list %}
|
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_prometheus_scraper_node_enabled %}
|
|
|
|
{% if matrix_prometheus_scraper_node_enabled %}
|
|
|
@ -43,4 +56,4 @@ scrape_configs:
|
|
|
|
- job_name: postgres
|
|
|
|
- job_name: postgres
|
|
|
|
static_configs:
|
|
|
|
static_configs:
|
|
|
|
- targets: {{ matrix_prometheus_scraper_postgres_targets|to_json }}
|
|
|
|
- targets: {{ matrix_prometheus_scraper_postgres_targets|to_json }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|