mirror of
https://github.com/prometheus-community/windows_exporter
synced 2024-12-24 23:42:08 +00:00
Add check for enable worker process so it is properly set.
Signed-off-by: matt durham <mattdurham@ppog.org>
This commit is contained in:
parent
470f5d5852
commit
9bed4826d6
@ -25,13 +25,15 @@ const (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
ProcessInclude string `yaml:"process_include"`
|
||||
ProcessExclude string `yaml:"process_exclude"`
|
||||
ProcessInclude string `yaml:"process_include"`
|
||||
ProcessExclude string `yaml:"process_exclude"`
|
||||
EnableWorkerProcess bool `yaml:"enable_iis_worker_process"`
|
||||
}
|
||||
|
||||
var ConfigDefaults = Config{
|
||||
ProcessInclude: ".+",
|
||||
ProcessExclude: "",
|
||||
ProcessInclude: ".+",
|
||||
ProcessExclude: "",
|
||||
EnableWorkerProcess: false,
|
||||
}
|
||||
|
||||
type collector struct {
|
||||
@ -68,8 +70,9 @@ func New(logger log.Logger, config *Config) types.Collector {
|
||||
}
|
||||
|
||||
c := &collector{
|
||||
processExclude: &config.ProcessExclude,
|
||||
processInclude: &config.ProcessInclude,
|
||||
processExclude: &config.ProcessExclude,
|
||||
processInclude: &config.ProcessInclude,
|
||||
enableWorkerProcess: &config.EnableWorkerProcess,
|
||||
}
|
||||
c.SetLogger(logger)
|
||||
return c
|
||||
|
Loading…
Reference in New Issue
Block a user