mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-03 00:56:35 +00:00
added smb to collectors and config
Signed-off-by: Andrey Burtasov <BurtasovAA@GSP-I.RU>
This commit is contained in:
@@ -49,6 +49,7 @@ import (
|
|||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/remote_fx"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/remote_fx"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/scheduled_task"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/scheduled_task"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/service"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/service"
|
||||||
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smb"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/smtp"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smtp"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/system"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/system"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/tcp"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/tcp"
|
||||||
@@ -136,6 +137,7 @@ func NewWithConfig(logger log.Logger, config Config) Collectors {
|
|||||||
collectors[time.Name] = time.New(logger, &config.Time)
|
collectors[time.Name] = time.New(logger, &config.Time)
|
||||||
collectors[vmware.Name] = vmware.New(logger, &config.Vmware)
|
collectors[vmware.Name] = vmware.New(logger, &config.Vmware)
|
||||||
collectors[vmware_blast.Name] = vmware_blast.New(logger, &config.VmwareBlast)
|
collectors[vmware_blast.Name] = vmware_blast.New(logger, &config.VmwareBlast)
|
||||||
|
collectors[smb.Name] = smb.New(logger, &config.Smb)
|
||||||
|
|
||||||
return New(collectors)
|
return New(collectors)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ import (
|
|||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/remote_fx"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/remote_fx"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/scheduled_task"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/scheduled_task"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/service"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/service"
|
||||||
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smb"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/smtp"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smtp"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/system"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/system"
|
||||||
"github.com/prometheus-community/windows_exporter/pkg/collector/tcp"
|
"github.com/prometheus-community/windows_exporter/pkg/collector/tcp"
|
||||||
@@ -107,6 +108,7 @@ type Config struct {
|
|||||||
Time time.Config `yaml:"time"`
|
Time time.Config `yaml:"time"`
|
||||||
Vmware vmware.Config `yaml:"vmware"`
|
Vmware vmware.Config `yaml:"vmware"`
|
||||||
VmwareBlast vmware_blast.Config `yaml:"vmware_blast"`
|
VmwareBlast vmware_blast.Config `yaml:"vmware_blast"`
|
||||||
|
Smb smb.Config `yaml:"smb"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigDefaults Is an interface to be used by the external libraries. It holds all ConfigDefaults form all collectors
|
// ConfigDefaults Is an interface to be used by the external libraries. It holds all ConfigDefaults form all collectors
|
||||||
@@ -163,4 +165,5 @@ var ConfigDefaults = Config{
|
|||||||
Time: time.ConfigDefaults,
|
Time: time.ConfigDefaults,
|
||||||
Vmware: vmware.ConfigDefaults,
|
Vmware: vmware.ConfigDefaults,
|
||||||
VmwareBlast: vmware_blast.ConfigDefaults,
|
VmwareBlast: vmware_blast.ConfigDefaults,
|
||||||
|
Smb: smb.ConfigDefaults,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user