Commit 585e397 1 parent f18cd07 commit 585e397 Copy full SHA for 585e397
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const (
36
36
// See also https://www.kernel.org/doc/Documentation/block/stat.txt
37
37
unixSectorSize = 512.0
38
38
39
- diskstatsDefaultIgnoredDevices = "^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\ d+n\\ d+p)\\ d+$"
39
+ diskstatsDefaultIgnoredDevices = "^(z? ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\ d+n\\ d+p)\\ d+$"
40
40
41
41
// See udevadm(8).
42
42
udevDevicePropertyPrefix = "E:"
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func TestDiskStats(t *testing.T) {
53
53
* sysPath = "fixtures/sys"
54
54
* procPath = "fixtures/proc"
55
55
* udevDataPath = "fixtures/udev/data"
56
- * diskstatsDeviceExclude = "^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\ d+n\\ d+p)\\ d+$"
56
+ * diskstatsDeviceExclude = "^(z? ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\ d+n\\ d+p)\\ d+$"
57
57
testcase := `# HELP node_disk_ata_rotation_rate_rpm ATA disk rotation rate in RPMs (0 for SSDs).
58
58
# TYPE node_disk_ata_rotation_rate_rpm gauge
59
59
node_disk_ata_rotation_rate_rpm{device="sda"} 7200
You can’t perform that action at this time.
0 commit comments