From 6c17ba5f28400356de337c135162dd9a4f694d53 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 31 May 2023 01:14:59 +0200 Subject: util.startup: Record current version in a metric Useful to have this info available when juggling metrics, e.g. to see if things changed between versions. --- util/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/startup.lua') diff --git a/util/startup.lua b/util/startup.lua index 1cfcaaba..20ecb120 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -367,7 +367,7 @@ function startup.load_secondary_libraries() --- Load and initialise core modules require "prosody.util.xmppstream" require "prosody.core.stanza_router" - require "prosody.core.statsmanager" + require "prosody.core.statsmanager".metric("gauge", "prosody_info", "", "Prosody version", { "version" }):with_labels(prosody.version):set(1); require "prosody.core.hostmanager" require "prosody.core.portmanager" require "prosody.core.modulemanager" -- cgit v1.2.3