Skip to content

Commit

Permalink
Change prometheus rule
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Odarenko <[email protected]>
  • Loading branch information
andreyod committed Dec 7, 2020
1 parent dac36d9 commit 9d4e715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/operands/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ func NewPrometheusRule(hc *hcov1beta1.HyperConverged, namespace string) *monitor
Name: alertRuleGroup,
Rules: []monitoringv1.Rule{{
Alert: outOfBandUpdateAlert,
Expr: intstr.FromString("sum(hyperconverged_cluster_operator_out_of_band_modifications[1m]) by (component_name) > 0"),
For: "1m",
Expr: intstr.FromString("sum(increase(hyperconverged_cluster_operator_out_of_band_modifications[1m])) by (component_name) > 0"),
For: "60m",
Annotations: map[string]string{
"description": "Out-of-band modification for {{ $labels.component_name }} .",
"summary": "Out-of-band CR modification was detected",
Expand Down

0 comments on commit 9d4e715

Please sign in to comment.