Преглед на файлове

Make sure to use the right variable in the init.yml files

pull/1984/head
Luca Bilke преди 3 години
родител
ревизия
37f4e6b525
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      roles/matrix-prometheus-node-exporter/tasks/init.yml
  2. +1
    -1
      roles/matrix-prometheus-postgres-exporter/tasks/init.yml

+ 1
- 1
roles/matrix-prometheus-node-exporter/tasks/init.yml Целия файл

@@ -24,7 +24,7 @@
set $backend "matrix-prometheus-node-exporter:9100"; set $backend "matrix-prometheus-node-exporter:9100";
proxy_pass http://$backend/metrics; proxy_pass http://$backend/metrics;
{% elif matrix_prometheus_postgres_exporter_container_http_host_bind_port != '' %} {% elif matrix_prometheus_postgres_exporter_container_http_host_bind_port != '' %}
proxy_pass http://{{ matrix_prometheus_postgres_exporter_container_http_host_bind_port }}/metrics;
proxy_pass http://{{ matrix_prometheus_node_exporter_matrix_nginx_proxy_not_enabled_proxy_pass_host }}/metrics;
{% else %} {% else %}
return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable"; return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable";
{% endif %} {% endif %}


+ 1
- 1
roles/matrix-prometheus-postgres-exporter/tasks/init.yml Целия файл

@@ -24,7 +24,7 @@
set $backend "matrix-prometheus-postgres-exporter:9187"; set $backend "matrix-prometheus-postgres-exporter:9187";
proxy_pass http://$backend/metrics; proxy_pass http://$backend/metrics;
{% elif matrix_prometheus_node_exporter_container_http_host_bind_port != '' %} {% elif matrix_prometheus_node_exporter_container_http_host_bind_port != '' %}
proxy_pass http://{{ matrix_prometheus_node_exporter_container_http_host_bind_port }}/metrics;
proxy_pass http://{{ matrix_prometheus_postgres_exporter_matrix_nginx_proxy_not_enabled_proxy_pass_host }}/metrics;
{% else %} {% else %}
return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable"; return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable";
{% endif %} {% endif %}


Зареждане…
Отказ
Запис