Mercurial > prosody-modules
changeset 4544:64fa2dd34d43
mod_prometheus: remove space between label k/v pairs
It is illegal in OpenMetrics and not needed in the old prometheus
format, so we better don't emit it.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Sun, 18 Apr 2021 13:42:07 +0200 (2021-04-18) |
parents | 9377b5593cc7 |
children | f4ab80f72d63 |
files | mod_prometheus/mod_prometheus.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_prometheus/mod_prometheus.lua Sat Apr 17 12:51:50 2021 +0100 +++ b/mod_prometheus/mod_prometheus.lua Sun Apr 18 13:42:07 2021 +0200 @@ -2,6 +2,7 @@ -- -- Copyright (C) 2014 Daurnimator -- Copyright (C) 2018 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> +-- Copyright (C) 2021 Jonas Schäfer <jonas@zombofant.net> -- -- This module is MIT/X11 licensed. @@ -53,7 +54,7 @@ if #values == 0 then return ""; end - return "{"..t_concat(values, ", ").."}"; + return "{"..t_concat(values, ",").."}"; end local function repr_sample(metric, labels, value, timestamp)