Skip to content

Commit 87d322e

Browse files
authored
Merge pull request #1285 from machadovilaca/CNV-55759
Alert VMStorageClassWarning only for Windows VMs
2 parents 28aed8d + d58a147 commit 87d322e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/operands/metrics/resources.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ func getAlertRules() ([]promv1.Rule, error) {
166166
},
167167
{
168168
Alert: "VMStorageClassWarning",
169-
Expr: intstr.FromString("(count(kubevirt_ssp_vm_rbd_block_volume_without_rxbounce > 0) or vector(0)) > 0"),
169+
Expr: intstr.FromString("(count(kubevirt_ssp_vm_rbd_block_volume_without_rxbounce * on(name, namespace) (kubevirt_vmi_info{guest_os_name=\"Microsoft Windows\"} > 0 or kubevirt_vmi_info{os=~\"windows.*\"} > 0) > 0) or vector(0)) > 0"),
170170
Annotations: map[string]string{
171-
"summary": "{{ $value }} Virtual Machines may cause reports of bad crc/signature errors due to certain I/O patterns",
172-
"description": "When running VMs using ODF storage with 'rbd' mounter or 'rbd.csi.ceph.com provisioner', VMs may cause reports of bad crc/signature errors due to certain I/O patterns. Cluster performance can be severely degraded if the number of re-transmissions due to crc errors causes network saturation.",
171+
"summary": "{{ $value }} Windows Virtual Machines may cause reports of bad crc/signature errors due to certain I/O patterns.",
172+
"description": "When running Windows VMs using ODF storage with 'rbd' mounter or 'rbd.csi.ceph.com provisioner', VMs may cause reports of bad crc/signature errors due to certain I/O patterns. Cluster performance can be severely degraded if the number of re-transmissions due to crc errors causes network saturation.",
173173
"runbook_url": fmt.Sprintf(runbookURLTemplate, "VMStorageClassWarning"),
174174
},
175175
Labels: map[string]string{

tests/monitoring_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ var _ = Describe("Prometheus Alerts", func() {
277277
alertShouldNotBeActive("VMStorageClassWarning")
278278
})
279279

280-
It("[test_id:10549] Should fire VMStorageClassWarning when rxbounce is disabled", func() {
280+
PIt("[test_id:10549] Should fire VMStorageClassWarning when rxbounce is disabled", func() {
281281
vmName := createResources(true, false)
282282
waitForSeriesToBeDetected(fmt.Sprintf("kubevirt_ssp_vm_rbd_block_volume_without_rxbounce{name='%s'} == 1", vmName))
283283
waitForAlertToActivate("VMStorageClassWarning")

0 commit comments

Comments
 (0)