From 326089d6de7373d3c4f441bcec808cb9dba5674d Mon Sep 17 00:00:00 2001 From: Andrey Velichkevich Date: Wed, 1 Dec 2021 23:22:04 +0000 Subject: [PATCH] Fix the default Metrics Collector regex (#1755) --- pkg/metricscollector/v1beta1/common/const.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metricscollector/v1beta1/common/const.go b/pkg/metricscollector/v1beta1/common/const.go index 7e4a7cdb2c0..56e2b57d9e5 100644 --- a/pkg/metricscollector/v1beta1/common/const.go +++ b/pkg/metricscollector/v1beta1/common/const.go @@ -39,12 +39,12 @@ const ( // DefaultFilter is the default metrics collector filter to parse the metrics. // Metrics must be printed this way // loss=0.3 - // accuracy=0.98 + // accuracy=.98 // Score=-7.53e-05 // Score=-7.53e+05 // Score=1E0 // Score=1.23E10 - DefaultFilter = `([\w|-]+)\s*=\s*([+-]?\d(\.\d+)?([Ee][+-]?\d+)?)` + DefaultFilter = `([\w|-]+)\s*=\s*([+-]?\d*(\.\d+)?([Ee][+-]?\d+)?)` // TODO (andreyvelich): Do we need to maintain 2 names? Should we leave only 1? MetricCollectorContainerName = "metrics-collector"