diff --git a/roles/prosody/templates/prosody.cfg.lua.j2 b/roles/prosody/templates/prosody.cfg.lua.j2 index 1e7c193cec3d34cd641795e03e297b3fd1499255..afa361e3a233e1b3d05f63468b323a620075b9b0 100644 --- a/roles/prosody/templates/prosody.cfg.lua.j2 +++ b/roles/prosody/templates/prosody.cfg.lua.j2 @@ -60,6 +60,17 @@ modules_enabled = { "http_openmetrics"; } +-- statistics and metrics +--- The http_openmetrics module exposes the metrics gathered by this internal +--- mechanism + +statistics = "internal" +-- this is fine iff we have only one Prometheus instance +statistics_interval = "manual" + +-- This is needed to allow external services to query the openmetrics endpoint +openmetrics_allowed_cidr = "0.0.0.0/0" + allow_registration = false archive_expires_after = "1w" @@ -114,17 +125,6 @@ sql = { port = 3311 } --- statistics and metrics ---- The http_openmetrics module exposes the metrics gathered by this internal ---- mechanism - -statistics = "internal" --- this is fine iff we have only one Prometheus instance -statistics_interval = "manual" - --- This is needed to allow external services to query the openmetrics endpoint -openmetrics_allowed_cidr = "0.0.0.0/0" - {% for domain in jabber_domains %} VirtualHost "{{ domain }}"