Match fd0, not fda0

Add fd/sr/vda examples to test input
This commit is contained in:
Stephen Shirley 2015-02-18 16:36:14 +01:00
commit 54da76f575
2 changed files with 6 additions and 1 deletions

View file

@ -22,7 +22,7 @@ const (
)
var (
ignoredDevices = flag.String("diskstatsIgnoredDevices", "^(ram|loop|(f|h|s|v|xv)d[a-z])\\d+$", "Regexp of devices to ignore for diskstats.")
ignoredDevices = flag.String("diskstatsIgnoredDevices", "^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$", "Regexp of devices to ignore for diskstats.")
)
type diskstatsCollector struct {