Skip to content

Commit

Permalink
fix(promrule): first attempt to stabilize rules (#93)
Browse files Browse the repository at this point in the history
Signed-off-by: Hy3n4 <[email protected]>
  • Loading branch information
Hy3n4 authored Apr 8, 2024
1 parent 3b12822 commit d9b850e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/helpers/prometheus_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const (
{{- else if and .Extended (eq .RecordName "sli_good") -}}
sum(increase({{.Metric}}{{ "{" }}{{ .Labels }}{{ "}" }}[{{.Window}}]))
{{- else if eq .RecordName "sli_total" -}}
sum(increase({{.Metric}}[{{.Window}}]))
sum(increase({{.Metric}}[{{.Window}}])) or vector(0)
{{- else if eq .RecordName "sli_good" -}}
sum(increase({{.Metric}}[{{.Window}}]))
sum(increase({{.Metric}}[{{.Window}}])) or vector(0)
{{- else if eq .RecordName "sli_bad" -}}
sum(increase({{.Metric}}[{{.Window}}]))
sum(increase({{.Metric}}[{{.Window}}])) or vector(0)
{{- end -}}
`
)
Expand Down

0 comments on commit d9b850e

Please sign in to comment.