Improve filter flag names.
Update netdev and systemd collectors to deprecate poorly chosen flag names. Old flag names to be removed in 2.0.0. https://github.com/prometheus/node_exporter/issues/1742 Add log messages for parsed flag values to help discover quoting isuses in supervisors. https://github.com/prometheus/node_exporter/issues/1737 Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
594f417bdf
commit
7e49b68d3a
5 changed files with 86 additions and 37 deletions
|
|
@ -20,6 +20,7 @@ import (
|
|||
"regexp"
|
||||
|
||||
"github.com/go-kit/kit/log"
|
||||
"github.com/go-kit/kit/log/level"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"gopkg.in/alecthomas/kingpin.v2"
|
||||
)
|
||||
|
|
@ -70,7 +71,9 @@ func init() {
|
|||
// NewFilesystemCollector returns a new Collector exposing filesystems stats.
|
||||
func NewFilesystemCollector(logger log.Logger) (Collector, error) {
|
||||
subsystem := "filesystem"
|
||||
level.Info(logger).Log("msg", "Parsed flag --collector.filesystem.ignored-mount-points", "flag", *ignoredMountPoints)
|
||||
mountPointPattern := regexp.MustCompile(*ignoredMountPoints)
|
||||
level.Info(logger).Log("msg", "Parsed flag --collector.filesystem.ignored-fs-types", "flag", *ignoredMountPoints)
|
||||
filesystemsTypesPattern := regexp.MustCompile(*ignoredFSTypes)
|
||||
|
||||
sizeDesc := prometheus.NewDesc(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue