feat(prometheus-comm): fix tyourls CI issues

This commit is contained in:
Alejandro Roman committed 2026-04-23 00:31:16 +04:00
1 parent 452a2bea90
commit 8efcf0f17d
1 file changed
+5 -3
@@ -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', '') %}