From cd4d4216f6b018d0e707329a061185251c285e43 Mon Sep 17 00:00:00 2001 From: Blallo <blallo@autistici.org> Date: Tue, 15 Nov 2022 00:12:28 +0100 Subject: [PATCH] Move configuration values up --- roles/prosody/templates/prosody.cfg.lua.j2 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/roles/prosody/templates/prosody.cfg.lua.j2 b/roles/prosody/templates/prosody.cfg.lua.j2 index 1e7c193c..afa361e3 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 }}" -- GitLab