Skip to content

Commit

Permalink
Add Alert desciption
Browse files Browse the repository at this point in the history
Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
  • Loading branch information
ezrasilvera committed Apr 6, 2021
1 parent 0623248 commit 88eefe9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/virt-operator/resource/generate/components/crds.go
Expand Up @@ -845,10 +845,14 @@ func NewPrometheusRuleSpec(ns string, workloadUpdatesEnabled bool) *promv1.Prome
},
{
Alert: "VMCannotBeEvicted",
Expr: intstr.FromString("kubevirt_vmi_non_evictable > 0"),
Expr: intstr.FromString("sum by(name, namespace) (kubevirt_vmi_non_evictable > 0)"),
For: "5m",
Annotations: map[string]string{
"summary": "The VM's eviction strategy is set to Live Migration but the VM is not migratable",
"summary": "The VM's eviction strategy is set to Live Migration but the VM is not migratable",
"Description": "Eviction policy for VM {{ $labels.name }} (on none {{ $labels.node }}) is set to Live Migration but the VM is not migratable",
},
Labels: map[string]string{
"severity": "warning",
},
},
},
Expand Down

0 comments on commit 88eefe9

Please sign in to comment.