aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-05-31 01:14:59 +0200
committerKim Alvefur <zash@zash.se>2023-05-31 01:14:59 +0200
commit6c17ba5f28400356de337c135162dd9a4f694d53 (patch)
treea95401d638ddc994e9a0234de544246b7fedb10e
parentd098a73534139eeb4931321d51ae34197cc1fba4 (diff)
downloadprosody-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.
-rw-r--r--util/startup.lua2
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"