Skip to content

Commit

Permalink
Add const labels to recording rules
Browse files Browse the repository at this point in the history
Signed-off-by: João Vilaça <jvilaca@redhat.com>
  • Loading branch information
machadovilaca committed Mar 20, 2024
1 parent 24620e2 commit 5d8710a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operatorrules/prometheusrules.go
Original file line number Diff line number Diff line change
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 5d8710a

Please sign in to comment.