2023-11-04 19:51:35 +00:00
|
|
|
package collector
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/ad"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/adcs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/adfs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/cache"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/container"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/cpu"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/cpu_info"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/cs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/dfsr"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/dhcp"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/diskdrive"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/dns"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/exchange"
|
2024-08-05 13:50:41 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/fsrmquota"
|
2023-11-04 19:51:35 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/hyperv"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/iis"
|
2024-07-23 11:02:25 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/license"
|
2023-11-04 19:51:35 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/logical_disk"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/logon"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/memory"
|
2024-08-29 20:03:05 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/mscluster"
|
2023-11-04 19:51:35 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/msmq"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/mssql"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/net"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrexceptions"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrinterop"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrjit"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrloading"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrlocksandthreads"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrmemory"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrremoting"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/netframework_clrsecurity"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/nps"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/os"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/physical_disk"
|
2024-05-17 16:47:32 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/printer"
|
2023-11-04 19:51:35 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/process"
|
|
|
|
"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/service"
|
2023-11-16 13:14:20 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smb"
|
2024-05-11 16:06:03 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/smbclient"
|
2023-11-04 19:51:35 +00:00
|
|
|
"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/tcp"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/teradici_pcoip"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/terminal_services"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/textfile"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/thermalzone"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/time"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/vmware"
|
|
|
|
"github.com/prometheus-community/windows_exporter/pkg/collector/vmware_blast"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2024-08-05 13:50:41 +00:00
|
|
|
AD ad.Config `yaml:"ad"`
|
|
|
|
ADCS adcs.Config `yaml:"adcs"`
|
|
|
|
ADFS adfs.Config `yaml:"adfs"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Cache cache.Config `yaml:"cache"`
|
|
|
|
Container container.Config `yaml:"container"`
|
2024-08-05 13:50:41 +00:00
|
|
|
CPU cpu.Config `yaml:"cpu"`
|
|
|
|
CPUInfo cpu_info.Config `yaml:"cpu_info"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Cs cs.Config `yaml:"cs"`
|
2024-08-05 13:50:41 +00:00
|
|
|
DFSR dfsr.Config `yaml:"dfsr"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Dhcp dhcp.Config `yaml:"dhcp"`
|
2024-08-10 20:05:33 +00:00
|
|
|
DiskDrive diskdrive.Config `yaml:"diskdrive"` //nolint:tagliatelle
|
2024-08-05 13:50:41 +00:00
|
|
|
DNS dns.Config `yaml:"dns"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Exchange exchange.Config `yaml:"exchange"`
|
2024-08-05 13:50:41 +00:00
|
|
|
Fsrmquota fsrmquota.Config `yaml:"fsrmquota"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Hyperv hyperv.Config `yaml:"hyperv"`
|
2024-08-05 13:50:41 +00:00
|
|
|
IIS iis.Config `yaml:"iis"`
|
2024-07-23 11:02:25 +00:00
|
|
|
License license.Config `yaml:"license"`
|
2023-11-04 19:51:35 +00:00
|
|
|
LogicalDisk logical_disk.Config `yaml:"logical_disk"`
|
|
|
|
Logon logon.Config `yaml:"logon"`
|
|
|
|
Memory memory.Config `yaml:"memory"`
|
2024-08-29 20:03:05 +00:00
|
|
|
Mscluster mscluster.Config `yaml:"mscluster"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Msmq msmq.Config `yaml:"msmq"`
|
|
|
|
Mssql mssql.Config `yaml:"mssql"`
|
|
|
|
Net net.Config `yaml:"net"`
|
|
|
|
NetframeworkClrexceptions netframework_clrexceptions.Config `yaml:"netframework_clrexceptions"`
|
|
|
|
NetframeworkClrinterop netframework_clrinterop.Config `yaml:"netframework_clrinterop"`
|
|
|
|
NetframeworkClrjit netframework_clrjit.Config `yaml:"netframework_clrjit"`
|
|
|
|
NetframeworkClrloading netframework_clrloading.Config `yaml:"netframework_clrloading"`
|
|
|
|
NetframeworkClrlocksandthreads netframework_clrlocksandthreads.Config `yaml:"netframework_clrlocksandthreads"`
|
|
|
|
NetframeworkClrmemory netframework_clrmemory.Config `yaml:"netframework_clrmemory"`
|
|
|
|
NetframeworkClrremoting netframework_clrremoting.Config `yaml:"netframework_clrremoting"`
|
|
|
|
NetframeworkClrsecurity netframework_clrsecurity.Config `yaml:"netframework_clrsecurity"`
|
|
|
|
Nps nps.Config `yaml:"nps"`
|
|
|
|
Os os.Config `yaml:"os"`
|
|
|
|
PhysicalDisk physical_disk.Config `yaml:"physical_disk"`
|
2024-05-17 16:47:32 +00:00
|
|
|
Printer printer.Config `yaml:"printer"`
|
2023-11-04 19:51:35 +00:00
|
|
|
Process process.Config `yaml:"process"`
|
|
|
|
RemoteFx remote_fx.Config `yaml:"remote_fx"`
|
|
|
|
ScheduledTask scheduled_task.Config `yaml:"scheduled_task"`
|
|
|
|
Service service.Config `yaml:"service"`
|
2024-08-05 13:50:41 +00:00
|
|
|
SMB smb.Config `yaml:"smb"`
|
2024-08-10 20:05:33 +00:00
|
|
|
SMBClient smbclient.Config `yaml:"smbclient"` //nolint:tagliatelle
|
2024-08-05 13:50:41 +00:00
|
|
|
SMTP smtp.Config `yaml:"smtp"`
|
2023-11-04 19:51:35 +00:00
|
|
|
System system.Config `yaml:"system"`
|
|
|
|
TeradiciPcoip teradici_pcoip.Config `yaml:"teradici_pcoip"`
|
2024-08-05 13:50:41 +00:00
|
|
|
TCP tcp.Config `yaml:"tcp"`
|
2023-11-04 19:51:35 +00:00
|
|
|
TerminalServices terminal_services.Config `yaml:"terminal_services"`
|
|
|
|
Textfile textfile.Config `yaml:"textfile"`
|
|
|
|
Thermalzone thermalzone.Config `yaml:"thermalzone"`
|
|
|
|
Time time.Config `yaml:"time"`
|
|
|
|
Vmware vmware.Config `yaml:"vmware"`
|
|
|
|
VmwareBlast vmware_blast.Config `yaml:"vmware_blast"`
|
|
|
|
}
|
|
|
|
|
2023-11-12 12:32:49 +00:00
|
|
|
// ConfigDefaults Is an interface to be used by the external libraries. It holds all ConfigDefaults form all collectors
|
2024-07-24 09:18:08 +00:00
|
|
|
//
|
|
|
|
//goland:noinspection GoUnusedGlobalVariable
|
2023-11-04 19:51:35 +00:00
|
|
|
var ConfigDefaults = Config{
|
2024-08-05 13:50:41 +00:00
|
|
|
AD: ad.ConfigDefaults,
|
|
|
|
ADCS: adcs.ConfigDefaults,
|
|
|
|
ADFS: adfs.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Cache: cache.ConfigDefaults,
|
|
|
|
Container: container.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
CPU: cpu.ConfigDefaults,
|
|
|
|
CPUInfo: cpu_info.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Cs: cs.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
DFSR: dfsr.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Dhcp: dhcp.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
DiskDrive: diskdrive.ConfigDefaults,
|
|
|
|
DNS: dns.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Exchange: exchange.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
Fsrmquota: fsrmquota.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Hyperv: hyperv.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
IIS: iis.ConfigDefaults,
|
2024-07-23 11:02:25 +00:00
|
|
|
License: license.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
LogicalDisk: logical_disk.ConfigDefaults,
|
|
|
|
Logon: logon.ConfigDefaults,
|
|
|
|
Memory: memory.ConfigDefaults,
|
2024-08-29 20:03:05 +00:00
|
|
|
Mscluster: mscluster.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Msmq: msmq.ConfigDefaults,
|
|
|
|
Mssql: mssql.ConfigDefaults,
|
|
|
|
Net: net.ConfigDefaults,
|
|
|
|
NetframeworkClrexceptions: netframework_clrexceptions.ConfigDefaults,
|
|
|
|
NetframeworkClrinterop: netframework_clrinterop.ConfigDefaults,
|
|
|
|
NetframeworkClrjit: netframework_clrjit.ConfigDefaults,
|
|
|
|
NetframeworkClrloading: netframework_clrloading.ConfigDefaults,
|
|
|
|
NetframeworkClrlocksandthreads: netframework_clrlocksandthreads.ConfigDefaults,
|
|
|
|
NetframeworkClrmemory: netframework_clrmemory.ConfigDefaults,
|
|
|
|
NetframeworkClrremoting: netframework_clrremoting.ConfigDefaults,
|
|
|
|
NetframeworkClrsecurity: netframework_clrsecurity.ConfigDefaults,
|
|
|
|
Nps: nps.ConfigDefaults,
|
|
|
|
Os: os.ConfigDefaults,
|
|
|
|
PhysicalDisk: physical_disk.ConfigDefaults,
|
2024-05-17 16:47:32 +00:00
|
|
|
Printer: printer.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
Process: process.ConfigDefaults,
|
|
|
|
RemoteFx: remote_fx.ConfigDefaults,
|
|
|
|
ScheduledTask: scheduled_task.ConfigDefaults,
|
|
|
|
Service: service.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
SMB: smb.ConfigDefaults,
|
|
|
|
SMBClient: smbclient.ConfigDefaults,
|
|
|
|
SMTP: smtp.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
System: system.ConfigDefaults,
|
|
|
|
TeradiciPcoip: teradici_pcoip.ConfigDefaults,
|
2024-08-05 13:50:41 +00:00
|
|
|
TCP: tcp.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
TerminalServices: terminal_services.ConfigDefaults,
|
|
|
|
Textfile: textfile.ConfigDefaults,
|
|
|
|
Thermalzone: thermalzone.ConfigDefaults,
|
|
|
|
Time: time.ConfigDefaults,
|
|
|
|
Vmware: vmware.ConfigDefaults,
|
|
|
|
VmwareBlast: vmware_blast.ConfigDefaults,
|
|
|
|
}
|