# HG changeset patch # User Jonas Schäfer # Date 1618746127 -7200 # Node ID 64fa2dd34d43baebd976ef69cfc1a7f2856a7f22 # Parent 9377b5593cc787ba5fc17ec7764446bc2513e964 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. diff -r 9377b5593cc7 -r 64fa2dd34d43 mod_prometheus/mod_prometheus.lua --- 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 +-- Copyright (C) 2021 Jonas Schäfer -- -- 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)