Skip to content

Commit

Permalink
Fix the default Metrics Collector regex (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich authored Dec 1, 2021
1 parent bb439fa commit 326089d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metricscollector/v1beta1/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 326089d

Please sign in to comment.