From 4324fba4646f2fce7f21b020efffdf2b976f4802 Mon Sep 17 00:00:00 2001 From: hys Date: Fri, 25 Jul 2025 19:10:49 +0800 Subject: [PATCH] fix: filter qemu style disk --- collector/diskstats_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/collector/diskstats_linux.go b/collector/diskstats_linux.go index ecf14e5416..7d3678063f 100644 --- a/collector/diskstats_linux.go +++ b/collector/diskstats_linux.go @@ -547,6 +547,9 @@ func (c *diskstatsCollector) scan() (map[string]*smartctlDeviceJSON, error) { if err != nil { return nil, fmt.Errorf("smarctl scan device: %s, error: %w", device.Name, err) } + if strings.Contains(strings.ToUpper(res.SCSIVendor), "QEMU") { + continue + } result[device.Name] = res } return result, nil