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 4244316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/virt-operator/resource/generate/components/crds.go
Expand Up @@ -845,10 +845,11 @@ 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",
"Description": "Eviction policy for VM {{ $labels.name }} (on none {{ $labels.node }}) is set to Live Migration but the VM is not migratable",
},
},
},
Expand Down

0 comments on commit 4244316

Please sign in to comment.