2023-11-04 19:51:35 +00:00
|
|
|
package collector
|
|
|
|
|
|
|
|
import (
|
2024-10-03 18:23:56 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/ad"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/adcs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/adfs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/cache"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/container"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/cpu"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/cpu_info"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/cs"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/dfsr"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/dhcp"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/diskdrive"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/dns"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/exchange"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/filetime"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/fsrmquota"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/hyperv"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/iis"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/license"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/logical_disk"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/logon"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/memory"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/mscluster"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/msmq"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/mssql"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/net"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/netframework"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/nps"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/os"
|
2024-11-14 21:39:59 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/pagefile"
|
2024-10-03 18:23:56 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/perfdata"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/physical_disk"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/printer"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/process"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/remote_fx"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/scheduled_task"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/service"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/smb"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/smbclient"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/smtp"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/system"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/tcp"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/terminal_services"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/textfile"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/thermalzone"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/time"
|
2024-11-11 16:17:19 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/udp"
|
2024-10-15 11:55:16 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/update"
|
2024-10-03 18:23:56 +00:00
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/vmware"
|
2023-11-04 19:51:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2024-09-20 08:02:57 +00:00
|
|
|
AD ad.Config `yaml:"ad"`
|
|
|
|
ADCS adcs.Config `yaml:"adcs"`
|
|
|
|
ADFS adfs.Config `yaml:"adfs"`
|
|
|
|
Cache cache.Config `yaml:"cache"`
|
|
|
|
Container container.Config `yaml:"container"`
|
|
|
|
CPU cpu.Config `yaml:"cpu"`
|
|
|
|
CPUInfo cpu_info.Config `yaml:"cpu_info"`
|
|
|
|
Cs cs.Config `yaml:"cs"`
|
|
|
|
DFSR dfsr.Config `yaml:"dfsr"`
|
|
|
|
Dhcp dhcp.Config `yaml:"dhcp"`
|
2024-10-03 18:23:56 +00:00
|
|
|
DiskDrive diskdrive.Config `yaml:"disk_drive"`
|
2024-09-20 08:02:57 +00:00
|
|
|
DNS dns.Config `yaml:"dns"`
|
|
|
|
Exchange exchange.Config `yaml:"exchange"`
|
2024-09-24 21:34:39 +00:00
|
|
|
Filetime filetime.Config `yaml:"filetime"`
|
2024-09-20 08:02:57 +00:00
|
|
|
Fsrmquota fsrmquota.Config `yaml:"fsrmquota"`
|
2024-10-03 18:23:56 +00:00
|
|
|
HyperV hyperv.Config `yaml:"hyper_v"`
|
2024-09-20 08:02:57 +00:00
|
|
|
IIS iis.Config `yaml:"iis"`
|
|
|
|
License license.Config `yaml:"license"`
|
|
|
|
LogicalDisk logical_disk.Config `yaml:"logical_disk"`
|
|
|
|
Logon logon.Config `yaml:"logon"`
|
|
|
|
Memory memory.Config `yaml:"memory"`
|
2024-10-03 18:23:56 +00:00
|
|
|
MSCluster mscluster.Config `yaml:"ms_cluster"`
|
2024-09-20 08:02:57 +00:00
|
|
|
Msmq msmq.Config `yaml:"msmq"`
|
|
|
|
Mssql mssql.Config `yaml:"mssql"`
|
|
|
|
Net net.Config `yaml:"net"`
|
|
|
|
NetFramework netframework.Config `yaml:"net_framework"`
|
|
|
|
Nps nps.Config `yaml:"nps"`
|
2024-10-03 18:23:56 +00:00
|
|
|
OS os.Config `yaml:"os"`
|
2024-11-14 21:39:59 +00:00
|
|
|
Paging pagefile.Config `yaml:"paging"`
|
2024-09-20 08:02:57 +00:00
|
|
|
PerfData perfdata.Config `yaml:"perf_data"`
|
|
|
|
PhysicalDisk physical_disk.Config `yaml:"physical_disk"`
|
|
|
|
Printer printer.Config `yaml:"printer"`
|
|
|
|
Process process.Config `yaml:"process"`
|
|
|
|
RemoteFx remote_fx.Config `yaml:"remote_fx"`
|
|
|
|
ScheduledTask scheduled_task.Config `yaml:"scheduled_task"`
|
|
|
|
Service service.Config `yaml:"service"`
|
|
|
|
SMB smb.Config `yaml:"smb"`
|
2024-10-03 18:23:56 +00:00
|
|
|
SMBClient smbclient.Config `yaml:"smb_client"`
|
2024-09-20 08:02:57 +00:00
|
|
|
SMTP smtp.Config `yaml:"smtp"`
|
|
|
|
System system.Config `yaml:"system"`
|
|
|
|
TCP tcp.Config `yaml:"tcp"`
|
|
|
|
TerminalServices terminal_services.Config `yaml:"terminal_services"`
|
|
|
|
Textfile textfile.Config `yaml:"textfile"`
|
2024-10-03 18:23:56 +00:00
|
|
|
ThermalZone thermalzone.Config `yaml:"thermal_zone"`
|
2024-09-20 08:02:57 +00:00
|
|
|
Time time.Config `yaml:"time"`
|
2024-11-11 16:17:19 +00:00
|
|
|
UDP udp.Config `yaml:"udp"`
|
2024-10-15 11:55:16 +00:00
|
|
|
Update update.Config `yaml:"update"`
|
2024-09-20 08:02:57 +00:00
|
|
|
Vmware vmware.Config `yaml:"vmware"`
|
2023-11-04 19:51:35 +00:00
|
|
|
}
|
|
|
|
|
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-09-20 08:02:57 +00:00
|
|
|
AD: ad.ConfigDefaults,
|
|
|
|
ADCS: adcs.ConfigDefaults,
|
|
|
|
ADFS: adfs.ConfigDefaults,
|
|
|
|
Cache: cache.ConfigDefaults,
|
|
|
|
Container: container.ConfigDefaults,
|
|
|
|
CPU: cpu.ConfigDefaults,
|
|
|
|
CPUInfo: cpu_info.ConfigDefaults,
|
|
|
|
Cs: cs.ConfigDefaults,
|
|
|
|
DFSR: dfsr.ConfigDefaults,
|
|
|
|
Dhcp: dhcp.ConfigDefaults,
|
|
|
|
DiskDrive: diskdrive.ConfigDefaults,
|
|
|
|
DNS: dns.ConfigDefaults,
|
|
|
|
Exchange: exchange.ConfigDefaults,
|
2024-09-24 21:34:39 +00:00
|
|
|
Filetime: filetime.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
Fsrmquota: fsrmquota.ConfigDefaults,
|
2024-10-03 18:23:56 +00:00
|
|
|
HyperV: hyperv.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
IIS: iis.ConfigDefaults,
|
|
|
|
License: license.ConfigDefaults,
|
|
|
|
LogicalDisk: logical_disk.ConfigDefaults,
|
|
|
|
Logon: logon.ConfigDefaults,
|
|
|
|
Memory: memory.ConfigDefaults,
|
2024-10-03 18:23:56 +00:00
|
|
|
MSCluster: mscluster.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
Msmq: msmq.ConfigDefaults,
|
|
|
|
Mssql: mssql.ConfigDefaults,
|
|
|
|
Net: net.ConfigDefaults,
|
|
|
|
NetFramework: netframework.ConfigDefaults,
|
|
|
|
Nps: nps.ConfigDefaults,
|
2024-10-03 18:23:56 +00:00
|
|
|
OS: os.ConfigDefaults,
|
2024-11-14 21:39:59 +00:00
|
|
|
Paging: pagefile.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
PerfData: perfdata.ConfigDefaults,
|
|
|
|
PhysicalDisk: physical_disk.ConfigDefaults,
|
|
|
|
Printer: printer.ConfigDefaults,
|
|
|
|
Process: process.ConfigDefaults,
|
|
|
|
RemoteFx: remote_fx.ConfigDefaults,
|
|
|
|
ScheduledTask: scheduled_task.ConfigDefaults,
|
|
|
|
Service: service.ConfigDefaults,
|
|
|
|
SMB: smb.ConfigDefaults,
|
|
|
|
SMBClient: smbclient.ConfigDefaults,
|
|
|
|
SMTP: smtp.ConfigDefaults,
|
|
|
|
System: system.ConfigDefaults,
|
|
|
|
TCP: tcp.ConfigDefaults,
|
|
|
|
TerminalServices: terminal_services.ConfigDefaults,
|
|
|
|
Textfile: textfile.ConfigDefaults,
|
2024-10-03 18:23:56 +00:00
|
|
|
ThermalZone: thermalzone.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
Time: time.ConfigDefaults,
|
2024-11-11 16:17:19 +00:00
|
|
|
UDP: udp.ConfigDefaults,
|
2024-10-15 11:55:16 +00:00
|
|
|
Update: update.ConfigDefaults,
|
2024-09-20 08:02:57 +00:00
|
|
|
Vmware: vmware.ConfigDefaults,
|
2023-11-04 19:51:35 +00:00
|
|
|
}
|