Просмотр исходного кода

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

pull/1984/head
Luca Bilke 3 лет назад
Родитель
Сommit
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";
proxy_pass http://$backend/metrics;
{% 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 %}
return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable";
{% endif %}


+ 1
- 1
roles/matrix-prometheus-postgres-exporter/tasks/init.yml Просмотреть файл

@@ -24,7 +24,7 @@
set $backend "matrix-prometheus-postgres-exporter:9187";
proxy_pass http://$backend/metrics;
{% 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 %}
return 404 "matrix-nginx-proxy is disabled and no host port was bound to the container, so metrics are unavailable";
{% endif %}


Загрузка…
Отмена
Сохранить