Skip to content

Commit

Permalink
Merge pull request #7 from machadovilaca/add-const-labels-to-recordin…
Browse files Browse the repository at this point in the history
…g-rules

Add const labels to recording rules
  • Loading branch information
assafad committed Mar 20, 2024
2 parents 24620e2 + 5d8710a commit 2656097
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operatorrules/prometheusrules.go
Expand Up @@ -62,6 +62,7 @@ func buildRecordingRulesRules() []promv1.Rule {
rules = append(rules, promv1.Rule{
Record: recordingRule.MetricsOpts.Name,
Expr: recordingRule.Expr,
Labels: recordingRule.MetricsOpts.ConstLabels,
})
}

Expand Down

0 comments on commit 2656097

Please sign in to comment.