Mercurial > prosody-modules
comparison mod_statistics_statsman/mod_statistics_statsman.lua @ 4595:bac3dae031ee
Add note of incompatibility with trunk since 5f15ab7c6ae5
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Jun 2021 12:55:14 +0200 |
parents | 78885053cd80 |
children |
comparison
equal
deleted
inserted
replaced
4594:1da63fe35ef3 | 4595:bac3dae031ee |
---|---|
2 | 2 |
3 local statsman = require "core.statsmanager"; | 3 local statsman = require "core.statsmanager"; |
4 local time_now = require "util.time".now; | 4 local time_now = require "util.time".now; |
5 local filters = require "util.filters"; | 5 local filters = require "util.filters"; |
6 local serialize = require "util.serialization".serialize; | 6 local serialize = require "util.serialization".serialize; |
7 | |
8 assert(statsman.get_stats, "not compatible with trunk based on openmetrics"); | |
7 | 9 |
8 local statistics_interval = module:context("*"):get_option_number("statistics_interval", 60); | 10 local statistics_interval = module:context("*"):get_option_number("statistics_interval", 60); |
9 if module:context("*"):get_option("statistics", "internal") ~= "internal" then | 11 if module:context("*"):get_option("statistics", "internal") ~= "internal" then |
10 module:log("error", "Not using internal statistics, can't do anyting"); | 12 module:log("error", "Not using internal statistics, can't do anyting"); |
11 return; | 13 return; |