Break dependency between matrix-prometheus and (matrix-prometheus-node-exporter, matrix-synapse)

This commit is contained in:
Slavi Pantaleev
2021-01-31 19:23:12 +02:00
parent 6842102e00
commit c8ab200cb1
5 changed files with 30 additions and 16 deletions

View File

@ -6,7 +6,7 @@ global:
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
{% if matrix_synapse_metrics_enabled %}
{% if matrix_prometheus_scraper_synapse_rules_enabled %}
- 'synapse-v2.rules'
{% endif %}
@ -26,11 +26,11 @@ scrape_configs:
static_configs:
- targets: ['localhost:9090']
{% if matrix_synapse_metrics_enabled %}
{% if matrix_prometheus_scraper_synapse_enabled %}
- job_name: 'synapse'
metrics_path: '/_synapse/metrics'
static_configs:
- targets: ['matrix-synapse:{{ matrix_synapse_metrics_port }}']
- targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
{% endif %}
{% if matrix_prometheus_scraper_node_enabled %}