Explorar el Código

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

pull/1984/head
Luca Bilke hace 3 años
padre
commit
37f4e6b525
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 %}


Cargando…
Cancelar
Guardar