From f9c6e4ca52c78484284abf679914431d77810725 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 5 Jun 2014 11:44:44 +0100 Subject: [PATCH] Ignore disk partitions by default, it's the disks themselves you usually want. --- collector/diskstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/diskstats.go b/collector/diskstats.go index cdc8d4ec..665a7c65 100644 --- a/collector/diskstats.go +++ b/collector/diskstats.go @@ -27,7 +27,7 @@ type diskStat struct { } var ( - ignoredDevices = flag.String("diskstatsIgnoredDevices", "^(ram|loop)\\d+$", "Regexp of devices to ignore for diskstats.") + ignoredDevices = flag.String("diskstatsIgnoredDevices", "^(ram|loop|[hs]d[a-z])\\d+$", "Regexp of devices to ignore for diskstats.") // Docs from https://www.kernel.org/doc/Documentation/iostats.txt diskStatsMetrics = []diskStat{