diff options
author | Kim Alvefur <zash@zash.se> | 2023-05-31 01:14:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-05-31 01:14:59 +0200 |
commit | 6c17ba5f28400356de337c135162dd9a4f694d53 (patch) | |
tree | a95401d638ddc994e9a0234de544246b7fedb10e /util/startup.lua | |
parent | d098a73534139eeb4931321d51ae34197cc1fba4 (diff) | |
download | prosody-6c17ba5f28400356de337c135162dd9a4f694d53.tar.gz prosody-6c17ba5f28400356de337c135162dd9a4f694d53.zip |
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.
Diffstat (limited to 'util/startup.lua')
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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" |