From 9d36ec5c0fc1cb136a931629b9b7ff304daeea9e Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 23 Sep 2024 14:21:00 +0200 Subject: [PATCH] remove broken filter --- mqtt2prom/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqtt2prom/run b/mqtt2prom/run index b1ba4d5..7939f22 100755 --- a/mqtt2prom/run +++ b/mqtt2prom/run @@ -375,7 +375,7 @@ function filter(): void }); } // remove data points with the same name and labels, keep the newest - $filterEntries = []; + /* $filterEntries = []; foreach ($data as $key => $entry) { $sort = $entry["labels"] ?? []; ksort($sort); @@ -402,6 +402,7 @@ function filter(): void return in_array($key, $keysToKeep); }); $data = array_values($data); + */ } function getEnvWithDefaultStr(string $key, string $default): string