From 8efcf0f17d95c024f538eb7afe96ddefe40aeb82 Mon Sep 17 00:00:00 2001 From: Alejandro Roman Date: Tue, 14 Apr 2026 23:33:08 +0400 Subject: [PATCH] feat(prometheus-comm): fix tyourls CI issues --- roles/sys-svc-proxy/templates/location/prometheus.conf.j2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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', '') %}