Merge pull request #1351 from mattdurham/check_settings

This commit is contained in:
Jan-Otto Kröpke
2023-11-27 19:09:36 +01:00
committed by GitHub

View File

@@ -27,11 +27,13 @@ const (
type Config struct {
ProcessInclude string `yaml:"process_include"`
ProcessExclude string `yaml:"process_exclude"`
EnableWorkerProcess bool `yaml:"enable_iis_worker_process"`
}
var ConfigDefaults = Config{
ProcessInclude: ".+",
ProcessExclude: "",
EnableWorkerProcess: false,
}
type collector struct {
@@ -70,6 +72,7 @@ func New(logger log.Logger, config *Config) types.Collector {
c := &collector{
processExclude: &config.ProcessExclude,
processInclude: &config.ProcessInclude,
enableWorkerProcess: &config.EnableWorkerProcess,
}
c.SetLogger(logger)
return c