# HG changeset patch # User Kim Alvefur # Date 1685488499 -7200 # Node ID be4058bb5a7e4e341f55a26436740fad0bc0fd63 # Parent df57c62165fcc3c0adcb6850c0ff26b552d08be7 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. diff -r df57c62165fc -r be4058bb5a7e util/startup.lua --- a/util/startup.lua Wed May 31 01:07:27 2023 +0200 +++ b/util/startup.lua Wed May 31 01:14:59 2023 +0200 @@ -367,7 +367,7 @@ --- 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"