Skip to content

Commit

Permalink
fix(prometheus): incorrect config method (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextheimer authored Oct 26, 2023
1 parent 24b0ccb commit c5b5a1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object PrometheusModel {
case MatchType.NOT_EQUAL => Filter.NotEquals(m.getValue)
case MatchType.REGEX_MATCH =>
// Relax the length limit only for matchers that contain at most the "|" special character.
val shouldRelax = queryConfig.getBoolean("relaxed-pipe-only-equals-regex-limit") &&
val shouldRelax = queryConfig.hasPath("relaxed-pipe-only-equals-regex-limit") &&
QueryUtils.containsPipeOnlyRegex(m.getValue)
if (shouldRelax) {
val limit = queryConfig.getInt("relaxed-pipe-only-equals-regex-limit");
Expand Down

0 comments on commit c5b5a1a

Please sign in to comment.