mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
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.
This commit is contained in:
parent
d098a73534
commit
6c17ba5f28
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue