In order to reduce cardinality of the interrupts collector add
filtering options
* Add include/exclude regexp filter flags.
* Add boolean flag to include zero values, enabled by default.
Signed-off-by: Ben Kochie <superq@gmail.com>
interruptsInclude=kingpin.Flag("collector.interrupts.name-include","Regexp of interrupts name to include (mutually exclusive to --collector.interrupts.name-exclude).").String()
interruptsExclude=kingpin.Flag("collector.interrupts.name-exclude","Regexp of interrupts name to exclude (mutually exclusive to --collector.interrupts.name-include).").String()
interruptsIncludeZeros=kingpin.Flag("collector.interrupts.include-zeros","Include interrupts that have a zero value").Default("true").Bool()
)
// NewInterruptsCollector returns a new Collector exposing interrupts stats.
// NewInterruptsCollector returns a new Collector exposing interrupts stats.