From 2a8ec06934b6fe9929193c7bd7b346493ecd1685 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 14 Jan 2023 00:28:27 +0100 Subject: [PATCH] ng: Allow specifying statistics interval Recommended for Prometheus / OpenMetrics which will probably be the primary use. In fact, why not just enable and hardcode mod_http_openmetrics? --- ng/configs/prosody-trunk.cfg.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ng/configs/prosody-trunk.cfg.lua b/ng/configs/prosody-trunk.cfg.lua index a3465f6..97988e6 100644 --- a/ng/configs/prosody-trunk.cfg.lua +++ b/ng/configs/prosody-trunk.cfg.lua @@ -227,6 +227,7 @@ log = { -- For more info see https://prosody.im/doc/statistics statistics = ENV_PROSODY_STATISTICS +statistics_interval = tonumber(ENV_PROSODY_STATISTICS_INTERVAL) or ENV_PROSODY_STATISTICS_INTERVAL -- Certificates