Mercurial > prosody-modules
comparison mod_prometheus/mod_prometheus.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 | 1e70538e4641 |
children | c406e4bf7ee5 |
comparison
equal
deleted
inserted
replaced
4594:1da63fe35ef3 | 4595:bac3dae031ee |
---|---|
14 local socket = require "socket"; | 14 local socket = require "socket"; |
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 | |
20 assert(get_stats, "not compatible with trunk based on openmetrics"); | |
19 | 21 |
20 local function escape(text) | 22 local function escape(text) |
21 return text:gsub("\\", "\\\\"):gsub("\"", "\\\""):gsub("\n", "\\n"); | 23 return text:gsub("\\", "\\\\"):gsub("\"", "\\\""):gsub("\n", "\\n"); |
22 end | 24 end |
23 | 25 |