Mercurial > prosody-modules
comparison mod_prometheus/mod_prometheus.lua @ 6393:00511ded133d
mod_prometheus: Use util.time instead of prosody.util.time, for 0.12 compatibility
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 01 Feb 2026 14:09:55 +0100 |
| parents | 268220ce0625 |
| children |
comparison
equal
deleted
inserted
replaced
| 6392:c1755a9cb5f8 | 6393:00511ded133d |
|---|---|
| 9 module:set_global(); | 9 module:set_global(); |
| 10 | 10 |
| 11 local tostring = tostring; | 11 local tostring = tostring; |
| 12 local t_insert = table.insert; | 12 local t_insert = table.insert; |
| 13 local t_concat = table.concat; | 13 local t_concat = table.concat; |
| 14 local time_now = require "prosody.util.time".now; | 14 local time_now = require "util.time".now; |
| 15 local statsman = require "core.statsmanager"; | 15 local statsman = require "core.statsmanager"; |
| 16 local get_stats = statsman.get_stats; | 16 local get_stats = statsman.get_stats; |
| 17 local get_metric_registry = statsman.get_metric_registry; | 17 local get_metric_registry = statsman.get_metric_registry; |
| 18 local collect = statsman.collect; | 18 local collect = statsman.collect; |
| 19 | 19 |
