Software /
code /
prosody-modules
Diff
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 |
parent | 4555:1e70538e4641 |
child | 4596:c406e4bf7ee5 |
line wrap: on
line diff
--- a/mod_prometheus/mod_prometheus.lua Wed Jun 16 17:32:43 2021 +0200 +++ b/mod_prometheus/mod_prometheus.lua Sat Jun 19 12:55:14 2021 +0200 @@ -17,6 +17,8 @@ local get_metric_registry = statsman.get_metric_registry; local collect = statsman.collect; +assert(get_stats, "not compatible with trunk based on openmetrics"); + local function escape(text) return text:gsub("\\", "\\\\"):gsub("\"", "\\\""):gsub("\n", "\\n"); end