Diff

mod_prometheus/mod_prometheus.lua @ 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
parent 4542:fb4a50bf60f1
child 4555:1e70538e4641
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)