Make collector-specific flags consistent with others.

This puts all collector-specific flags into their own namespace under
"collector.<collector-name>", and moves from camel case to dashes, which
is the standard in Prometheus land now.
This commit is contained in:
Julius Volz 2015-02-18 18:15:57 +01:00
commit efcce45c90
5 changed files with 10 additions and 9 deletions

View file

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