Skip to content

Commit

Permalink
Update cnv:vmi_status_running:count
Browse files Browse the repository at this point in the history
Update cnv:vmi_status_running:count.
Added the labels instance_type and preference.

Signed-off-by: Shirly Radco <sradco@redhat.com>
  • Loading branch information
sradco committed Dec 14, 2023
1 parent 5428531 commit 58f33d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/operands/metrics/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func getAlertRules() ([]promv1.Rule, error) {

return []promv1.Rule{
{
Expr: intstr.FromString("sum(kubevirt_vmi_phase_count{phase=\"running\"}) by (node,os,workload,flavor)"),
Expr: intstr.FromString("sum(kubevirt_vmi_phase_count{phase=\"running\"}) by (node,os,workload,flavor,instance_type,preference)"),
Record: "cnv:vmi_status_running:count",
},
{
Expand Down

0 comments on commit 58f33d9

Please sign in to comment.