Преглед изворни кода

Fix index in external_prometheus.yml.example.j2

For an unknown reason prometheus ignored the given "numeric" index and replaced it by 1. This made it not work properly, plus multiple workers of same types were not differentiable. With a "string" index, it works as intended.
pull/1705/head
Kim Brose пре 4 година
committed by GitHub
родитељ
комит
5ed23e81ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      roles/matrix-nginx-proxy/templates/prometheus/external_prometheus.yml.example.j2

+ 2
- 2
roles/matrix-nginx-proxy/templates/prometheus/external_prometheus.yml.example.j2 Прегледај датотеку

@@ -22,7 +22,7 @@ scrape_configs:
- targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}'] - targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}']
labels: labels:
job: "master" job: "master"
index: 1
index: "0"
{% for worker in matrix_nginx_proxy_proxy_synapse_workers_enabled_list %} {% for worker in matrix_nginx_proxy_proxy_synapse_workers_enabled_list %}
- job_name: 'synapse-{{ worker.type }}-{{ worker.instanceId }}' - job_name: 'synapse-{{ worker.type }}-{{ worker.instanceId }}'
metrics_path: /_synapse-worker-{{ worker.type }}-{{ worker.instanceId }}/metrics metrics_path: /_synapse-worker-{{ worker.type }}-{{ worker.instanceId }}/metrics
@@ -36,5 +36,5 @@ scrape_configs:
- targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}'] - targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}']
labels: labels:
job: "{{ worker.type }}" job: "{{ worker.type }}"
index: {{ worker.instanceId }}
index: "{{ worker.instanceId }}"
{% endfor %} {% endfor %}

Loading…
Откажи
Сачувај