Description of problem: The rule for producing the alert LowKVMNodesCount will never fire the alarm because the rule for this alert: (kubevirt_allocatable_nodes_count > 1) and (kubevirt_kvm_available_nodes_count < 2) the kubevirt_allocatable_nodes_count counts all nodes as allocatable including the master nodes. The kubevirt_kvm_available_nodes_count expression is: intstr.FromString("kubevirt_allocatable_nodes_count - count(kube_node_status_allocatable{resource=\"devices_kubevirt_io_kvm\"} == 0)") This expression will give us 3 so the alert will never fire
Assaf, can you please check which component this alert belongs to?
Hi Krzysztof, it is coming from kubevirt - https://github.com/kubevirt/kubevirt/blob/main/pkg/virt-operator/resource/generate/components/prometheus.go#L135.