diff --git a/roles/sys-svc-proxy/templates/location/prometheus.conf.j2 b/roles/sys-svc-proxy/templates/location/prometheus.conf.j2 index b307900322..591cbec1bb 100644 --- a/roles/sys-svc-proxy/templates/location/prometheus.conf.j2 +++ b/roles/sys-svc-proxy/templates/location/prometheus.conf.j2 @@ -3,13 +3,15 @@ Included from basic.conf.j2, synapse.conf.j2, and any other custom vhost that participates in the monitoring stack. - healthz.conf.j2 — /healthz/live + /healthz/ready + /_live_probe - location.conf.j2 — log_by_lua_block per-request metrics collection + healthz.conf.j2 — /healthz/live + /healthz/ready + /_live_probe (all vhosts) + location.conf.j2 — log_by_lua_block per-request metrics collection (prometheus-enabled only) metricz.conf.j2 — /metricz scrape endpoint (prometheus domain only) #} + {# Always expose /healthz/live and /healthz/ready — every vhost needs them. #} + {% include 'roles/sys-svc-proxy/templates/location/healthz.conf.j2' %} + {# Per-request metrics collection requires prometheus Lua globals — only when deployed. #} {% if lookup('config', application_id, 'compose.services.prometheus.enabled', False) or lookup('config', application_id, 'compose.services.prometheus.name', '') %} - {% include 'roles/sys-svc-proxy/templates/location/healthz.conf.j2' %} {% include 'roles/web-app-prometheus/templates/location.conf.j2' %} {% endif %} {% if lookup('config', application_id, 'compose.services.prometheus.name', '') %}