Skip to content

Commit

Permalink
Add missing field to metrics (#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
severinson committed Jan 31, 2024
1 parent 79f9a92 commit 95572c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scheduler/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type Metrics struct {

// Pre-compiled regexes for error categorisation.
errorRegexes []*regexp.Regexp

// Map from error message to the index of the first matching regex.
// Messages that match no regex map to -1.
matchedRegexIndexByErrorMessage *lru.Cache
Expand Down Expand Up @@ -87,6 +86,7 @@ func New(config configuration.MetricsConfig) (*Metrics, error) {

buffer: make([]string, 0, 8),

errorRegexes: errorRegexes,
matchedRegexIndexByErrorMessage: matchedRegexIndexByError,

transitions: prometheus.NewCounterVec(
Expand Down

0 comments on commit 95572c8

Please sign in to comment.