windows_exporter/collector
Ben Reedy 9214a87d0d
feat: Remove init functions from collectors
Behaviour of init functions has been centralised in `collector/init.go`,
and can be called during exporter startup. This allows the exporter to
control the timing of collector initialisation, rather than relying on
the import & `init()` method.

This should reduce unexpected behaviour arising from the use of
`init()`, such as #551.

Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-04-01 17:54:40 +10:00
..
ad.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
ad_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
adcs.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
adcs_test.go Initial commit for ADCS collector 2022-01-02 01:24:11 -05:00
adfs.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
adfs_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
cache.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
collector.go Initial commit for ADCS collector 2022-01-02 01:24:11 -05:00
collector_test.go golangci-lint: Acknowledge all remaining checks and update golanci-lint to v1.43.0 2021-12-24 11:19:05 +01:00
container.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
container_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
cpu.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
cpu_info.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
cpu_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
cs.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
cs_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
dfsr.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
dfsr_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
dhcp.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
dhcp_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
diskdrive.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
diskdrive_test.go Removed commented benchmark 2023-01-12 17:08:59 -05:00
dns.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
dns_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
exchange.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
exchange_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
fsrmquota.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
fsrmquota_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
hyperv.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
hyperv_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
iis.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
iis_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
init.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
logical_disk.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
logical_disk_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
logon.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
logon_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
memory.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
memory_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
mscluster_cluster.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
mscluster_network.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
mscluster_node.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
mscluster_resource.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
mscluster_resourcegroup.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
msmq.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
msmq_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
mssql.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
mssql_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
net.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
net_test.go gofmt: Fix File is not `gofmt`-ed with `-s` for go1.17 2021-12-18 19:01:29 +01:00
netframework_clrexceptions.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrexceptions_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrinterop.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrinterop_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrjit.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrjit_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrloading.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrloading_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrlocksandthreads.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrlocksandthreads_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrmemory.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrmemory_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrremoting.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrremoting_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
netframework_clrsecurity.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
netframework_clrsecurity_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
os.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
os_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
perflib.go Add cpu metrics based on newer and more accurate perflib sources 2022-11-02 14:34:04 -07:00
perflib_test.go Add cpu metrics based on newer and more accurate perflib sources 2022-11-02 14:34:04 -07:00
process.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
process_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
remote_fx.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
remote_fx_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
scheduled_task.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
scheduled_task_test.go Added tests 2022-05-12 16:36:46 +10:00
service.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
service_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
smtp.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
smtp_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
system.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
system_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
tcp.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
tcp_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
teradici_pcoip.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
teradici_pcoip_test.go Returning test functions to public 2023-02-08 10:12:15 +00:00
terminal_services.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
terminal_services_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
textfile.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
textfile_test.go Check duplicates across entire textfile set 2021-05-17 16:54:28 +10:00
thermalzone.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
thermalzone_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
time.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
time_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
vmware.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
vmware_blast.go feat: Remove init functions from collectors 2023-04-01 17:54:40 +10:00
vmware_blast_test.go Returning test functions to public 2023-02-08 10:12:15 +00:00
vmware_test.go Add benchmark for each collector 2021-04-01 22:28:54 +10:00
wmi.go Take over prometheus/common/log into local log package 2021-01-30 11:53:51 +01:00
wmi_test.go