From 554607fee2480fcbdf2696647c8a7e140f68833d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 24 Apr 2025 22:17:16 +0200 Subject: [PATCH] chore: Remove copyright dates (#2010) --- .golangci.yaml | 2 +- .run/all.run.xml | 2 +- cmd/windows_exporter/0_service.go | 15 +--- cmd/windows_exporter/doc.go | 2 +- cmd/windows_exporter/main.go | 2 +- cmd/windows_exporter/main_test.go | 2 +- installer/files.wxs | 2 +- installer/main.wxs | 4 +- internal/collector/ad/ad.go | 2 +- internal/collector/ad/ad_test.go | 2 +- internal/collector/ad/types.go | 2 +- internal/collector/adcs/adcs.go | 2 +- internal/collector/adcs/adcs_test.go | 2 +- internal/collector/adcs/types.go | 2 +- internal/collector/adfs/adfs.go | 2 +- internal/collector/adfs/adfs_test.go | 2 +- internal/collector/adfs/types.go | 2 +- internal/collector/cache/cache.go | 2 +- internal/collector/cache/cache_test.go | 2 +- internal/collector/cache/types.go | 2 +- internal/collector/container/container.go | 2 +- .../collector/container/container_test.go | 2 +- internal/collector/cpu/cpu.go | 2 +- internal/collector/cpu/cpu_test.go | 2 +- internal/collector/cpu/types.go | 2 +- internal/collector/cpu_info/cpu_info.go | 2 +- internal/collector/cpu_info/cpu_info_test.go | 2 +- internal/collector/cs/cs.go | 2 +- internal/collector/cs/cs_test.go | 2 +- internal/collector/dfsr/dfsr.go | 2 +- internal/collector/dfsr/dfsr_test.go | 2 +- internal/collector/dfsr/types.go | 2 +- internal/collector/dhcp/dhcp.go | 2 +- internal/collector/dhcp/dhcp_test.go | 2 +- internal/collector/dhcp/types.go | 2 +- internal/collector/diskdrive/diskdrive.go | 2 +- .../collector/diskdrive/diskdrive_test.go | 2 +- internal/collector/dns/dns.go | 2 +- internal/collector/dns/dns_test.go | 2 +- internal/collector/dns/types.go | 2 +- internal/collector/exchange/exchange.go | 2 +- .../exchange/exchange_active_sync.go | 2 +- .../exchange/exchange_ad_access_processes.go | 2 +- .../exchange/exchange_autodiscover.go | 2 +- .../exchange/exchange_availability_service.go | 2 +- .../collector/exchange/exchange_http_proxy.go | 2 +- .../exchange/exchange_mapi_http_emsmdb.go | 2 +- .../exchange/exchange_outlook_web_access.go | 2 +- .../exchange/exchange_rpc_client_access.go | 2 +- internal/collector/exchange/exchange_test.go | 2 +- .../exchange/exchange_transport_queues.go | 2 +- .../exchange/exchange_workload_management.go | 2 +- internal/collector/filetime/filetime.go | 2 +- internal/collector/filetime/filetime_test.go | 2 +- internal/collector/fsrmquota/fsrmquota.go | 2 +- .../collector/fsrmquota/fsrmquota_test.go | 2 +- internal/collector/hyperv/hyperv.go | 2 +- internal/collector/hyperv/hyperv_datastore.go | 2 +- .../hyperv/hyperv_dynamic_memory_balancer.go | 2 +- .../hyperv/hyperv_dynamic_memory_vm.go | 2 +- .../hyperv_hypervisor_logical_processor.go | 2 +- .../hyperv_hypervisor_root_partition.go | 2 +- ...yperv_hypervisor_root_virtual_processor.go | 2 +- .../hyperv_hypervisor_virtual_processor.go | 2 +- .../hyperv/hyperv_legacy_network_adapter.go | 2 +- internal/collector/hyperv/hyperv_test.go | 2 +- .../hyperv_virtual_machine_health_summary.go | 2 +- .../hyperv_virtual_machine_vid_partition.go | 2 +- .../hyperv/hyperv_virtual_network_adapter.go | 2 +- ...rv_virtual_network_adapter_drop_reasons.go | 2 +- .../collector/hyperv/hyperv_virtual_smb.go | 2 +- .../hyperv/hyperv_virtual_storage_device.go | 2 +- .../collector/hyperv/hyperv_virtual_switch.go | 2 +- internal/collector/iis/iis.go | 2 +- internal/collector/iis/iis_app_pool_was.go | 2 +- internal/collector/iis/iis_bench_test.go | 2 +- internal/collector/iis/iis_w3svc_w3wp.go | 2 +- internal/collector/iis/iis_web_service.go | 2 +- .../collector/iis/iis_web_service_cache.go | 2 +- internal/collector/license/license.go | 2 +- internal/collector/license/license_test.go | 2 +- .../collector/logical_disk/logical_disk.go | 2 +- .../logical_disk/logical_disk_test.go | 2 +- internal/collector/logical_disk/types.go | 2 +- internal/collector/logon/logon.go | 2 +- internal/collector/logon/logon_test.go | 2 +- internal/collector/memory/memory.go | 2 +- internal/collector/memory/memory_test.go | 2 +- internal/collector/memory/types.go | 2 +- internal/collector/mscluster/mscluster.go | 2 +- .../collector/mscluster/mscluster_cluster.go | 2 +- .../collector/mscluster/mscluster_network.go | 2 +- .../collector/mscluster/mscluster_node.go | 2 +- .../collector/mscluster/mscluster_resource.go | 2 +- .../mscluster/mscluster_resourcegroup.go | 2 +- .../collector/mscluster/mscluster_test.go | 2 +- internal/collector/msmq/msmq.go | 2 +- internal/collector/msmq/msmq_test.go | 2 +- internal/collector/msmq/types.go | 2 +- internal/collector/mssql/mssql.go | 2 +- .../collector/mssql/mssql_access_methods.go | 2 +- .../mssql/mssql_availability_replica.go | 2 +- .../collector/mssql/mssql_buffer_manager.go | 2 +- internal/collector/mssql/mssql_database.go | 2 +- .../collector/mssql/mssql_database_replica.go | 2 +- .../mssql/mssql_general_statistics.go | 2 +- internal/collector/mssql/mssql_instance.go | 2 +- internal/collector/mssql/mssql_locks.go | 2 +- .../collector/mssql/mssql_memory_manager.go | 2 +- internal/collector/mssql/mssql_sql_errors.go | 2 +- internal/collector/mssql/mssql_sql_stats.go | 2 +- internal/collector/mssql/mssql_test.go | 2 +- .../collector/mssql/mssql_transactions.go | 2 +- internal/collector/mssql/mssql_wait_stats.go | 2 +- internal/collector/mssql/types.go | 2 +- internal/collector/net/net.go | 2 +- internal/collector/net/net_bench_test.go | 2 +- internal/collector/net/net_test.go | 2 +- internal/collector/net/types.go | 2 +- .../collector/netframework/netframework.go | 2 +- .../netframework_clrexceptions.go | 2 +- .../netframework/netframework_clrinterop.go | 2 +- .../netframework/netframework_clrjit.go | 2 +- .../netframework/netframework_clrloading.go | 2 +- .../netframework_clrlocksandthreads.go | 2 +- .../netframework/netframework_clrmemory.go | 2 +- .../netframework/netframework_clrremoting.go | 2 +- .../netframework/netframework_clrsecurity.go | 2 +- .../netframework/netframework_test.go | 2 +- internal/collector/nps/nps.go | 2 +- internal/collector/nps/nps_test.go | 2 +- internal/collector/nps/types.go | 2 +- internal/collector/os/os.go | 2 +- internal/collector/os/os_test.go | 2 +- internal/collector/pagefile/pagefile.go | 2 +- internal/collector/pagefile/pagefile_test.go | 2 +- internal/collector/pagefile/types.go | 2 +- .../performancecounter/performancecounter.go | 2 +- .../performancecounter_test.go | 2 +- .../performancecounter_test_test.go | 2 +- .../collector/performancecounter/types.go | 2 +- .../collector/physical_disk/physical_disk.go | 2 +- .../physical_disk/physical_disk_test.go | 2 +- internal/collector/physical_disk/types.go | 2 +- internal/collector/printer/printer.go | 2 +- internal/collector/printer/printer_test.go | 2 +- internal/collector/process/process.go | 2 +- internal/collector/process/process_test.go | 2 +- internal/collector/process/process_v1.go | 2 +- internal/collector/process/process_v2.go | 2 +- internal/collector/process/types.go | 2 +- internal/collector/remote_fx/remote_fx.go | 2 +- .../collector/remote_fx/remote_fx_test.go | 2 +- internal/collector/remote_fx/types.go | 2 +- .../scheduled_task/scheduled_task.go | 2 +- .../scheduled_task/scheduled_task_test.go | 2 +- internal/collector/service/service.go | 2 +- internal/collector/service/service_test.go | 2 +- internal/collector/smb/smb.go | 2 +- internal/collector/smb/smb_test.go | 2 +- internal/collector/smb/types.go | 2 +- internal/collector/smbclient/smbclient.go | 2 +- .../collector/smbclient/smbclient_test.go | 2 +- internal/collector/smbclient/types.go | 2 +- internal/collector/smtp/smtp.go | 2 +- internal/collector/smtp/smtp_test.go | 2 +- internal/collector/smtp/types.go | 2 +- internal/collector/system/system.go | 2 +- internal/collector/system/system_test.go | 2 +- internal/collector/system/types.go | 2 +- internal/collector/tcp/tcp.go | 2 +- internal/collector/tcp/tcp_test.go | 2 +- internal/collector/tcp/types.go | 2 +- .../terminal_services/terminal_services.go | 2 +- .../terminal_services_test.go | 2 +- internal/collector/terminal_services/types.go | 2 +- internal/collector/textfile/textfile.go | 2 +- internal/collector/textfile/textfile_test.go | 2 +- .../collector/textfile/textfile_test_test.go | 2 +- internal/collector/thermalzone/thermalzone.go | 2 +- .../collector/thermalzone/thermalzone_test.go | 2 +- internal/collector/thermalzone/types.go | 2 +- internal/collector/time/time.go | 2 +- internal/collector/time/time_test.go | 2 +- internal/collector/time/types.go | 2 +- internal/collector/udp/types.go | 2 +- internal/collector/udp/udp.go | 2 +- internal/collector/udp/udp_test.go | 2 +- internal/collector/update/update.go | 2 +- internal/collector/update/update_test.go | 2 +- internal/collector/vmware/types.go | 2 +- internal/collector/vmware/vmware.go | 2 +- internal/collector/vmware/vmware_test.go | 2 +- internal/config/config.go | 2 +- internal/config/flatten.go | 2 +- internal/config/flatten_test.go | 2 +- internal/headers/dhcpsapi/dhcpsapi.go | 2 +- internal/headers/dhcpsapi/dhcpsapi_test.go | 2 +- internal/headers/dhcpsapi/types.go | 80 +++++++++---------- internal/headers/iphlpapi/const.go | 2 +- internal/headers/iphlpapi/iphlpapi.go | 2 +- internal/headers/iphlpapi/iphlpapi_test.go | 2 +- internal/headers/iphlpapi/types.go | 2 +- internal/headers/kernel32/kernel32.go | 2 +- internal/headers/netapi32/netapi32.go | 2 +- internal/headers/psapi/psapi.go | 2 +- .../schedule_service/schedule_service.go | 2 +- internal/headers/secur32/secur32.go | 2 +- internal/headers/secur32/secur32_test.go | 2 +- internal/headers/secur32/types.go | 2 +- internal/headers/slc/slc.go | 2 +- internal/headers/sysinfoapi/sysinfoapi.go | 2 +- internal/headers/{win32api => win32}/types.go | 33 +++++++- internal/headers/wtsapi32/wtsapi32.go | 2 +- internal/httphandler/health.go | 2 +- internal/httphandler/httphandler.go | 2 +- internal/httphandler/version.go | 2 +- internal/log/eventlog/eventlog.go | 2 +- internal/log/flag/flag.go | 2 +- internal/log/logger.go | 2 +- internal/mi/application.go | 2 +- internal/mi/callbacks.go | 2 +- internal/mi/doc.go | 2 +- internal/mi/errors.go | 2 +- internal/mi/instance.go | 2 +- internal/mi/mi_bench_test.go | 2 +- internal/mi/mi_test.go | 2 +- internal/mi/operation.go | 2 +- internal/mi/result.go | 2 +- internal/mi/session.go | 2 +- internal/mi/types.go | 2 +- internal/mi/value.go | 2 +- internal/pdh/collector.go | 2 +- internal/pdh/collector_bench_test.go | 2 +- internal/pdh/collector_test.go | 2 +- internal/pdh/const.go | 2 +- internal/pdh/error.go | 2 +- internal/pdh/pdh.go | 2 +- internal/pdh/registry/collector.go | 2 +- internal/pdh/registry/nametable.go | 2 +- internal/pdh/registry/perflib.go | 2 +- internal/pdh/registry/perflib_test.go | 2 +- internal/pdh/registry/raw_types.go | 2 +- internal/pdh/registry/utf16.go | 2 +- internal/pdh/registry/utils.go | 2 +- internal/pdh/types.go | 2 +- internal/pdh/types/types.go | 2 +- internal/types/const.go | 2 +- internal/types/errors.go | 2 +- internal/types/regexp.go | 2 +- internal/utils/counter.go | 2 +- internal/utils/counter_test.go | 2 +- internal/utils/testutils/testutils.go | 2 +- internal/utils/utils.go | 2 +- pkg/collector/collect.go | 2 +- pkg/collector/collection.go | 6 +- pkg/collector/config.go | 2 +- pkg/collector/handler.go | 2 +- pkg/collector/map.go | 2 +- pkg/collector/types.go | 2 +- 260 files changed, 332 insertions(+), 316 deletions(-) rename internal/headers/{win32api => win32}/types.go (50%) diff --git a/.golangci.yaml b/.golangci.yaml index ea840737..7bd75b9c 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -37,7 +37,7 @@ linters: template: |- SPDX-License-Identifier: Apache-2.0 - Copyright {{ YEAR }} {{ COMPANY }} + Copyright {{ COMPANY }} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/.run/all.run.xml b/.run/all.run.xml index 8c52f200..c95df5b6 100644 --- a/.run/all.run.xml +++ b/.run/all.run.xml @@ -1,7 +1,7 @@ diff --git a/internal/collector/ad/ad.go b/internal/collector/ad/ad.go index 1fb3adaa..538f1da6 100644 --- a/internal/collector/ad/ad.go +++ b/internal/collector/ad/ad.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/ad/ad_test.go b/internal/collector/ad/ad_test.go index 9197d8bf..01e7d61e 100644 --- a/internal/collector/ad/ad_test.go +++ b/internal/collector/ad/ad_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/ad/types.go b/internal/collector/ad/types.go index fd614bb9..2d40f222 100644 --- a/internal/collector/ad/types.go +++ b/internal/collector/ad/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adcs/adcs.go b/internal/collector/adcs/adcs.go index d82e3845..f013b513 100644 --- a/internal/collector/adcs/adcs.go +++ b/internal/collector/adcs/adcs.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adcs/adcs_test.go b/internal/collector/adcs/adcs_test.go index 3bd19505..4212567f 100644 --- a/internal/collector/adcs/adcs_test.go +++ b/internal/collector/adcs/adcs_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adcs/types.go b/internal/collector/adcs/types.go index 2b0f4c40..ee28533b 100644 --- a/internal/collector/adcs/types.go +++ b/internal/collector/adcs/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adfs/adfs.go b/internal/collector/adfs/adfs.go index 27dc02ec..fa54cb2d 100644 --- a/internal/collector/adfs/adfs.go +++ b/internal/collector/adfs/adfs.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adfs/adfs_test.go b/internal/collector/adfs/adfs_test.go index aa9033f5..14aa2e87 100644 --- a/internal/collector/adfs/adfs_test.go +++ b/internal/collector/adfs/adfs_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/adfs/types.go b/internal/collector/adfs/types.go index b5c03b5f..44893e39 100644 --- a/internal/collector/adfs/types.go +++ b/internal/collector/adfs/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cache/cache.go b/internal/collector/cache/cache.go index c7c58ef9..1139e229 100644 --- a/internal/collector/cache/cache.go +++ b/internal/collector/cache/cache.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cache/cache_test.go b/internal/collector/cache/cache_test.go index bf4fdbf4..0950fa78 100644 --- a/internal/collector/cache/cache_test.go +++ b/internal/collector/cache/cache_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cache/types.go b/internal/collector/cache/types.go index 84ca2d5e..6d1888f3 100644 --- a/internal/collector/cache/types.go +++ b/internal/collector/cache/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/container/container.go b/internal/collector/container/container.go index 467643bc..b119d71a 100644 --- a/internal/collector/container/container.go +++ b/internal/collector/container/container.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/container/container_test.go b/internal/collector/container/container_test.go index a12bb562..bda2edbe 100644 --- a/internal/collector/container/container_test.go +++ b/internal/collector/container/container_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cpu/cpu.go b/internal/collector/cpu/cpu.go index 5173abae..4d2dd06e 100644 --- a/internal/collector/cpu/cpu.go +++ b/internal/collector/cpu/cpu.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cpu/cpu_test.go b/internal/collector/cpu/cpu_test.go index 65b22198..40d6716f 100644 --- a/internal/collector/cpu/cpu_test.go +++ b/internal/collector/cpu/cpu_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cpu/types.go b/internal/collector/cpu/types.go index 14ca6f3c..05dbe515 100644 --- a/internal/collector/cpu/types.go +++ b/internal/collector/cpu/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cpu_info/cpu_info.go b/internal/collector/cpu_info/cpu_info.go index 5e55b862..db6f2c14 100644 --- a/internal/collector/cpu_info/cpu_info.go +++ b/internal/collector/cpu_info/cpu_info.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cpu_info/cpu_info_test.go b/internal/collector/cpu_info/cpu_info_test.go index e59b19a6..e864d345 100644 --- a/internal/collector/cpu_info/cpu_info_test.go +++ b/internal/collector/cpu_info/cpu_info_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cs/cs.go b/internal/collector/cs/cs.go index edcce977..82c93817 100644 --- a/internal/collector/cs/cs.go +++ b/internal/collector/cs/cs.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/cs/cs_test.go b/internal/collector/cs/cs_test.go index 498f9050..a91229a3 100644 --- a/internal/collector/cs/cs_test.go +++ b/internal/collector/cs/cs_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dfsr/dfsr.go b/internal/collector/dfsr/dfsr.go index 31161cc2..39ae6ccc 100644 --- a/internal/collector/dfsr/dfsr.go +++ b/internal/collector/dfsr/dfsr.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dfsr/dfsr_test.go b/internal/collector/dfsr/dfsr_test.go index 7e71eda6..cd4afe3c 100644 --- a/internal/collector/dfsr/dfsr_test.go +++ b/internal/collector/dfsr/dfsr_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dfsr/types.go b/internal/collector/dfsr/types.go index e4332374..bee1738b 100644 --- a/internal/collector/dfsr/types.go +++ b/internal/collector/dfsr/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dhcp/dhcp.go b/internal/collector/dhcp/dhcp.go index 7c535403..49b6d28b 100644 --- a/internal/collector/dhcp/dhcp.go +++ b/internal/collector/dhcp/dhcp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dhcp/dhcp_test.go b/internal/collector/dhcp/dhcp_test.go index 49442dcb..55708ca1 100644 --- a/internal/collector/dhcp/dhcp_test.go +++ b/internal/collector/dhcp/dhcp_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dhcp/types.go b/internal/collector/dhcp/types.go index 880cc2c5..f56a80fc 100644 --- a/internal/collector/dhcp/types.go +++ b/internal/collector/dhcp/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/diskdrive/diskdrive.go b/internal/collector/diskdrive/diskdrive.go index a1d4e5b4..a1d77960 100644 --- a/internal/collector/diskdrive/diskdrive.go +++ b/internal/collector/diskdrive/diskdrive.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/diskdrive/diskdrive_test.go b/internal/collector/diskdrive/diskdrive_test.go index 6acc8e60..9cd79f0e 100644 --- a/internal/collector/diskdrive/diskdrive_test.go +++ b/internal/collector/diskdrive/diskdrive_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dns/dns.go b/internal/collector/dns/dns.go index 9774483c..1176cd9a 100644 --- a/internal/collector/dns/dns.go +++ b/internal/collector/dns/dns.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dns/dns_test.go b/internal/collector/dns/dns_test.go index 5d7e7219..7fb6e563 100644 --- a/internal/collector/dns/dns_test.go +++ b/internal/collector/dns/dns_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/dns/types.go b/internal/collector/dns/types.go index ca620c95..7ddd69f3 100644 --- a/internal/collector/dns/types.go +++ b/internal/collector/dns/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange.go b/internal/collector/exchange/exchange.go index 45c17205..d0ba851a 100644 --- a/internal/collector/exchange/exchange.go +++ b/internal/collector/exchange/exchange.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_active_sync.go b/internal/collector/exchange/exchange_active_sync.go index 1b239ea9..71daba67 100644 --- a/internal/collector/exchange/exchange_active_sync.go +++ b/internal/collector/exchange/exchange_active_sync.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_ad_access_processes.go b/internal/collector/exchange/exchange_ad_access_processes.go index 1c8c0bce..c4c82f09 100644 --- a/internal/collector/exchange/exchange_ad_access_processes.go +++ b/internal/collector/exchange/exchange_ad_access_processes.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_autodiscover.go b/internal/collector/exchange/exchange_autodiscover.go index dc4b244b..534227e6 100644 --- a/internal/collector/exchange/exchange_autodiscover.go +++ b/internal/collector/exchange/exchange_autodiscover.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_availability_service.go b/internal/collector/exchange/exchange_availability_service.go index 0982f650..44322212 100644 --- a/internal/collector/exchange/exchange_availability_service.go +++ b/internal/collector/exchange/exchange_availability_service.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_http_proxy.go b/internal/collector/exchange/exchange_http_proxy.go index eba8e62c..df77a5b5 100644 --- a/internal/collector/exchange/exchange_http_proxy.go +++ b/internal/collector/exchange/exchange_http_proxy.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_mapi_http_emsmdb.go b/internal/collector/exchange/exchange_mapi_http_emsmdb.go index 888aed16..609adf69 100644 --- a/internal/collector/exchange/exchange_mapi_http_emsmdb.go +++ b/internal/collector/exchange/exchange_mapi_http_emsmdb.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_outlook_web_access.go b/internal/collector/exchange/exchange_outlook_web_access.go index a12a8f95..96ea1e42 100644 --- a/internal/collector/exchange/exchange_outlook_web_access.go +++ b/internal/collector/exchange/exchange_outlook_web_access.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_rpc_client_access.go b/internal/collector/exchange/exchange_rpc_client_access.go index ae86a075..d72777bf 100644 --- a/internal/collector/exchange/exchange_rpc_client_access.go +++ b/internal/collector/exchange/exchange_rpc_client_access.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_test.go b/internal/collector/exchange/exchange_test.go index aada2b62..1975d754 100644 --- a/internal/collector/exchange/exchange_test.go +++ b/internal/collector/exchange/exchange_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_transport_queues.go b/internal/collector/exchange/exchange_transport_queues.go index 85e433d5..01abd415 100644 --- a/internal/collector/exchange/exchange_transport_queues.go +++ b/internal/collector/exchange/exchange_transport_queues.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/exchange/exchange_workload_management.go b/internal/collector/exchange/exchange_workload_management.go index 0d1d6648..0c99b4cc 100644 --- a/internal/collector/exchange/exchange_workload_management.go +++ b/internal/collector/exchange/exchange_workload_management.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/filetime/filetime.go b/internal/collector/filetime/filetime.go index 52685f8a..a92b21e3 100644 --- a/internal/collector/filetime/filetime.go +++ b/internal/collector/filetime/filetime.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/filetime/filetime_test.go b/internal/collector/filetime/filetime_test.go index fb99d4ed..a8f65bc4 100644 --- a/internal/collector/filetime/filetime_test.go +++ b/internal/collector/filetime/filetime_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/fsrmquota/fsrmquota.go b/internal/collector/fsrmquota/fsrmquota.go index d7639230..ed438f40 100644 --- a/internal/collector/fsrmquota/fsrmquota.go +++ b/internal/collector/fsrmquota/fsrmquota.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/fsrmquota/fsrmquota_test.go b/internal/collector/fsrmquota/fsrmquota_test.go index 2ec366a0..d40d9f30 100644 --- a/internal/collector/fsrmquota/fsrmquota_test.go +++ b/internal/collector/fsrmquota/fsrmquota_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv.go b/internal/collector/hyperv/hyperv.go index a34b6ce3..6375e233 100644 --- a/internal/collector/hyperv/hyperv.go +++ b/internal/collector/hyperv/hyperv.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_datastore.go b/internal/collector/hyperv/hyperv_datastore.go index 48c8724b..ad3c0c24 100644 --- a/internal/collector/hyperv/hyperv_datastore.go +++ b/internal/collector/hyperv/hyperv_datastore.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_dynamic_memory_balancer.go b/internal/collector/hyperv/hyperv_dynamic_memory_balancer.go index 0a5ee33d..8849f93d 100644 --- a/internal/collector/hyperv/hyperv_dynamic_memory_balancer.go +++ b/internal/collector/hyperv/hyperv_dynamic_memory_balancer.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_dynamic_memory_vm.go b/internal/collector/hyperv/hyperv_dynamic_memory_vm.go index eeae3ffe..b9e3fc16 100644 --- a/internal/collector/hyperv/hyperv_dynamic_memory_vm.go +++ b/internal/collector/hyperv/hyperv_dynamic_memory_vm.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_hypervisor_logical_processor.go b/internal/collector/hyperv/hyperv_hypervisor_logical_processor.go index f8ca79d1..f18e771d 100644 --- a/internal/collector/hyperv/hyperv_hypervisor_logical_processor.go +++ b/internal/collector/hyperv/hyperv_hypervisor_logical_processor.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_hypervisor_root_partition.go b/internal/collector/hyperv/hyperv_hypervisor_root_partition.go index bdc5a558..e77dff03 100644 --- a/internal/collector/hyperv/hyperv_hypervisor_root_partition.go +++ b/internal/collector/hyperv/hyperv_hypervisor_root_partition.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_hypervisor_root_virtual_processor.go b/internal/collector/hyperv/hyperv_hypervisor_root_virtual_processor.go index 980836f9..452d1d79 100644 --- a/internal/collector/hyperv/hyperv_hypervisor_root_virtual_processor.go +++ b/internal/collector/hyperv/hyperv_hypervisor_root_virtual_processor.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_hypervisor_virtual_processor.go b/internal/collector/hyperv/hyperv_hypervisor_virtual_processor.go index 90a838cd..44e0e381 100644 --- a/internal/collector/hyperv/hyperv_hypervisor_virtual_processor.go +++ b/internal/collector/hyperv/hyperv_hypervisor_virtual_processor.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_legacy_network_adapter.go b/internal/collector/hyperv/hyperv_legacy_network_adapter.go index c412ed3c..b9983fef 100644 --- a/internal/collector/hyperv/hyperv_legacy_network_adapter.go +++ b/internal/collector/hyperv/hyperv_legacy_network_adapter.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_test.go b/internal/collector/hyperv/hyperv_test.go index f743e33d..2f73234e 100644 --- a/internal/collector/hyperv/hyperv_test.go +++ b/internal/collector/hyperv/hyperv_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_machine_health_summary.go b/internal/collector/hyperv/hyperv_virtual_machine_health_summary.go index 926ccc2d..45ea1a08 100644 --- a/internal/collector/hyperv/hyperv_virtual_machine_health_summary.go +++ b/internal/collector/hyperv/hyperv_virtual_machine_health_summary.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_machine_vid_partition.go b/internal/collector/hyperv/hyperv_virtual_machine_vid_partition.go index caf620e9..899d6185 100644 --- a/internal/collector/hyperv/hyperv_virtual_machine_vid_partition.go +++ b/internal/collector/hyperv/hyperv_virtual_machine_vid_partition.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_network_adapter.go b/internal/collector/hyperv/hyperv_virtual_network_adapter.go index 7f1d6cb7..4d6d05ef 100644 --- a/internal/collector/hyperv/hyperv_virtual_network_adapter.go +++ b/internal/collector/hyperv/hyperv_virtual_network_adapter.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_network_adapter_drop_reasons.go b/internal/collector/hyperv/hyperv_virtual_network_adapter_drop_reasons.go index 3f809e9b..fe9806be 100644 --- a/internal/collector/hyperv/hyperv_virtual_network_adapter_drop_reasons.go +++ b/internal/collector/hyperv/hyperv_virtual_network_adapter_drop_reasons.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_smb.go b/internal/collector/hyperv/hyperv_virtual_smb.go index ebfa667b..b25b22c7 100644 --- a/internal/collector/hyperv/hyperv_virtual_smb.go +++ b/internal/collector/hyperv/hyperv_virtual_smb.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_storage_device.go b/internal/collector/hyperv/hyperv_virtual_storage_device.go index 0608e9f9..b99a726e 100644 --- a/internal/collector/hyperv/hyperv_virtual_storage_device.go +++ b/internal/collector/hyperv/hyperv_virtual_storage_device.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/hyperv/hyperv_virtual_switch.go b/internal/collector/hyperv/hyperv_virtual_switch.go index d6c45d45..7a57baf5 100644 --- a/internal/collector/hyperv/hyperv_virtual_switch.go +++ b/internal/collector/hyperv/hyperv_virtual_switch.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis.go b/internal/collector/iis/iis.go index 9c86a7f6..ddbf422d 100644 --- a/internal/collector/iis/iis.go +++ b/internal/collector/iis/iis.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis_app_pool_was.go b/internal/collector/iis/iis_app_pool_was.go index 59b231f0..f31b1fa3 100644 --- a/internal/collector/iis/iis_app_pool_was.go +++ b/internal/collector/iis/iis_app_pool_was.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis_bench_test.go b/internal/collector/iis/iis_bench_test.go index d2388039..1763ae4a 100644 --- a/internal/collector/iis/iis_bench_test.go +++ b/internal/collector/iis/iis_bench_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis_w3svc_w3wp.go b/internal/collector/iis/iis_w3svc_w3wp.go index 74a00d1a..7406e7a7 100644 --- a/internal/collector/iis/iis_w3svc_w3wp.go +++ b/internal/collector/iis/iis_w3svc_w3wp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis_web_service.go b/internal/collector/iis/iis_web_service.go index 2f118200..84156986 100644 --- a/internal/collector/iis/iis_web_service.go +++ b/internal/collector/iis/iis_web_service.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/iis/iis_web_service_cache.go b/internal/collector/iis/iis_web_service_cache.go index cba3f64a..8054b4cb 100644 --- a/internal/collector/iis/iis_web_service_cache.go +++ b/internal/collector/iis/iis_web_service_cache.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/license/license.go b/internal/collector/license/license.go index 36e592ea..d95b9c31 100644 --- a/internal/collector/license/license.go +++ b/internal/collector/license/license.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/license/license_test.go b/internal/collector/license/license_test.go index 6b19be4f..0f4789d0 100644 --- a/internal/collector/license/license_test.go +++ b/internal/collector/license/license_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/logical_disk/logical_disk.go b/internal/collector/logical_disk/logical_disk.go index 5d481e46..90e9a966 100644 --- a/internal/collector/logical_disk/logical_disk.go +++ b/internal/collector/logical_disk/logical_disk.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/logical_disk/logical_disk_test.go b/internal/collector/logical_disk/logical_disk_test.go index f0acc10b..876de33d 100644 --- a/internal/collector/logical_disk/logical_disk_test.go +++ b/internal/collector/logical_disk/logical_disk_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/logical_disk/types.go b/internal/collector/logical_disk/types.go index ac987536..ce065579 100644 --- a/internal/collector/logical_disk/types.go +++ b/internal/collector/logical_disk/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/logon/logon.go b/internal/collector/logon/logon.go index 34e1f478..f7c17193 100644 --- a/internal/collector/logon/logon.go +++ b/internal/collector/logon/logon.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/logon/logon_test.go b/internal/collector/logon/logon_test.go index 319fd261..30c7855f 100644 --- a/internal/collector/logon/logon_test.go +++ b/internal/collector/logon/logon_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/memory/memory.go b/internal/collector/memory/memory.go index 792ef3b9..1b4748ef 100644 --- a/internal/collector/memory/memory.go +++ b/internal/collector/memory/memory.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/memory/memory_test.go b/internal/collector/memory/memory_test.go index f4621296..fb9d3d54 100644 --- a/internal/collector/memory/memory_test.go +++ b/internal/collector/memory/memory_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/memory/types.go b/internal/collector/memory/types.go index 9094d021..85d79300 100644 --- a/internal/collector/memory/types.go +++ b/internal/collector/memory/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster.go b/internal/collector/mscluster/mscluster.go index f2c6517d..17418cfd 100644 --- a/internal/collector/mscluster/mscluster.go +++ b/internal/collector/mscluster/mscluster.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_cluster.go b/internal/collector/mscluster/mscluster_cluster.go index 0379d539..ca91e322 100644 --- a/internal/collector/mscluster/mscluster_cluster.go +++ b/internal/collector/mscluster/mscluster_cluster.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_network.go b/internal/collector/mscluster/mscluster_network.go index 87d3bf21..3a34a8c7 100644 --- a/internal/collector/mscluster/mscluster_network.go +++ b/internal/collector/mscluster/mscluster_network.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_node.go b/internal/collector/mscluster/mscluster_node.go index 4ef57df0..f8ae3a0f 100644 --- a/internal/collector/mscluster/mscluster_node.go +++ b/internal/collector/mscluster/mscluster_node.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_resource.go b/internal/collector/mscluster/mscluster_resource.go index 1a78fd6b..36d49092 100644 --- a/internal/collector/mscluster/mscluster_resource.go +++ b/internal/collector/mscluster/mscluster_resource.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_resourcegroup.go b/internal/collector/mscluster/mscluster_resourcegroup.go index 680fc8b9..dc471205 100644 --- a/internal/collector/mscluster/mscluster_resourcegroup.go +++ b/internal/collector/mscluster/mscluster_resourcegroup.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mscluster/mscluster_test.go b/internal/collector/mscluster/mscluster_test.go index 41d82d47..64b41d7d 100644 --- a/internal/collector/mscluster/mscluster_test.go +++ b/internal/collector/mscluster/mscluster_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/msmq/msmq.go b/internal/collector/msmq/msmq.go index 5678178b..5d3a7cbd 100644 --- a/internal/collector/msmq/msmq.go +++ b/internal/collector/msmq/msmq.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/msmq/msmq_test.go b/internal/collector/msmq/msmq_test.go index c6722958..157f91e9 100644 --- a/internal/collector/msmq/msmq_test.go +++ b/internal/collector/msmq/msmq_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/msmq/types.go b/internal/collector/msmq/types.go index 7151a529..a2051d80 100644 --- a/internal/collector/msmq/types.go +++ b/internal/collector/msmq/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql.go b/internal/collector/mssql/mssql.go index d42eb670..8942c421 100644 --- a/internal/collector/mssql/mssql.go +++ b/internal/collector/mssql/mssql.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_access_methods.go b/internal/collector/mssql/mssql_access_methods.go index 3b76a1c1..ee987cd3 100644 --- a/internal/collector/mssql/mssql_access_methods.go +++ b/internal/collector/mssql/mssql_access_methods.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_availability_replica.go b/internal/collector/mssql/mssql_availability_replica.go index e66f4754..9be11eed 100644 --- a/internal/collector/mssql/mssql_availability_replica.go +++ b/internal/collector/mssql/mssql_availability_replica.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_buffer_manager.go b/internal/collector/mssql/mssql_buffer_manager.go index bbc70a59..93b75150 100644 --- a/internal/collector/mssql/mssql_buffer_manager.go +++ b/internal/collector/mssql/mssql_buffer_manager.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_database.go b/internal/collector/mssql/mssql_database.go index a401c0e5..f1fcc4d9 100644 --- a/internal/collector/mssql/mssql_database.go +++ b/internal/collector/mssql/mssql_database.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_database_replica.go b/internal/collector/mssql/mssql_database_replica.go index 8f603780..20de11d1 100644 --- a/internal/collector/mssql/mssql_database_replica.go +++ b/internal/collector/mssql/mssql_database_replica.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_general_statistics.go b/internal/collector/mssql/mssql_general_statistics.go index baa5f348..b6c37d1d 100644 --- a/internal/collector/mssql/mssql_general_statistics.go +++ b/internal/collector/mssql/mssql_general_statistics.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_instance.go b/internal/collector/mssql/mssql_instance.go index 8e047e2c..10de2078 100644 --- a/internal/collector/mssql/mssql_instance.go +++ b/internal/collector/mssql/mssql_instance.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_locks.go b/internal/collector/mssql/mssql_locks.go index 64ae234b..6663f3da 100644 --- a/internal/collector/mssql/mssql_locks.go +++ b/internal/collector/mssql/mssql_locks.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_memory_manager.go b/internal/collector/mssql/mssql_memory_manager.go index 09ee3a25..c0787886 100644 --- a/internal/collector/mssql/mssql_memory_manager.go +++ b/internal/collector/mssql/mssql_memory_manager.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_sql_errors.go b/internal/collector/mssql/mssql_sql_errors.go index cf98507f..64aee81a 100644 --- a/internal/collector/mssql/mssql_sql_errors.go +++ b/internal/collector/mssql/mssql_sql_errors.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_sql_stats.go b/internal/collector/mssql/mssql_sql_stats.go index 096075f6..381ef9d6 100644 --- a/internal/collector/mssql/mssql_sql_stats.go +++ b/internal/collector/mssql/mssql_sql_stats.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_test.go b/internal/collector/mssql/mssql_test.go index 0924bcb5..d0ed417a 100644 --- a/internal/collector/mssql/mssql_test.go +++ b/internal/collector/mssql/mssql_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_transactions.go b/internal/collector/mssql/mssql_transactions.go index d0a24914..1e03145c 100644 --- a/internal/collector/mssql/mssql_transactions.go +++ b/internal/collector/mssql/mssql_transactions.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/mssql_wait_stats.go b/internal/collector/mssql/mssql_wait_stats.go index 877723f6..7ffc20f0 100644 --- a/internal/collector/mssql/mssql_wait_stats.go +++ b/internal/collector/mssql/mssql_wait_stats.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/mssql/types.go b/internal/collector/mssql/types.go index 0eda1426..877af6fb 100644 --- a/internal/collector/mssql/types.go +++ b/internal/collector/mssql/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/net/net.go b/internal/collector/net/net.go index be540cd2..d8415a28 100644 --- a/internal/collector/net/net.go +++ b/internal/collector/net/net.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/net/net_bench_test.go b/internal/collector/net/net_bench_test.go index 9761763a..6397d66a 100644 --- a/internal/collector/net/net_bench_test.go +++ b/internal/collector/net/net_bench_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/net/net_test.go b/internal/collector/net/net_test.go index 197659c0..1342594a 100644 --- a/internal/collector/net/net_test.go +++ b/internal/collector/net/net_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/net/types.go b/internal/collector/net/types.go index 2b4f51fd..3277cc4f 100644 --- a/internal/collector/net/types.go +++ b/internal/collector/net/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework.go b/internal/collector/netframework/netframework.go index 320c0eba..f4de7702 100644 --- a/internal/collector/netframework/netframework.go +++ b/internal/collector/netframework/netframework.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrexceptions.go b/internal/collector/netframework/netframework_clrexceptions.go index 64cc000d..725eeb7a 100644 --- a/internal/collector/netframework/netframework_clrexceptions.go +++ b/internal/collector/netframework/netframework_clrexceptions.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrinterop.go b/internal/collector/netframework/netframework_clrinterop.go index 78238825..0fe1808e 100644 --- a/internal/collector/netframework/netframework_clrinterop.go +++ b/internal/collector/netframework/netframework_clrinterop.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrjit.go b/internal/collector/netframework/netframework_clrjit.go index 7fc16b8e..c7a73578 100644 --- a/internal/collector/netframework/netframework_clrjit.go +++ b/internal/collector/netframework/netframework_clrjit.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrloading.go b/internal/collector/netframework/netframework_clrloading.go index f7841285..bf0e84c2 100644 --- a/internal/collector/netframework/netframework_clrloading.go +++ b/internal/collector/netframework/netframework_clrloading.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrlocksandthreads.go b/internal/collector/netframework/netframework_clrlocksandthreads.go index f2bf2090..2f6e3566 100644 --- a/internal/collector/netframework/netframework_clrlocksandthreads.go +++ b/internal/collector/netframework/netframework_clrlocksandthreads.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrmemory.go b/internal/collector/netframework/netframework_clrmemory.go index 0126bcf6..534b8a14 100644 --- a/internal/collector/netframework/netframework_clrmemory.go +++ b/internal/collector/netframework/netframework_clrmemory.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrremoting.go b/internal/collector/netframework/netframework_clrremoting.go index 2ae91b41..cb99b3aa 100644 --- a/internal/collector/netframework/netframework_clrremoting.go +++ b/internal/collector/netframework/netframework_clrremoting.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_clrsecurity.go b/internal/collector/netframework/netframework_clrsecurity.go index bd481478..bc044ee8 100644 --- a/internal/collector/netframework/netframework_clrsecurity.go +++ b/internal/collector/netframework/netframework_clrsecurity.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/netframework/netframework_test.go b/internal/collector/netframework/netframework_test.go index 90cf0506..81402629 100644 --- a/internal/collector/netframework/netframework_test.go +++ b/internal/collector/netframework/netframework_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/nps/nps.go b/internal/collector/nps/nps.go index a941b92d..ff3a8efd 100644 --- a/internal/collector/nps/nps.go +++ b/internal/collector/nps/nps.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/nps/nps_test.go b/internal/collector/nps/nps_test.go index f8655bac..7a88d4f3 100644 --- a/internal/collector/nps/nps_test.go +++ b/internal/collector/nps/nps_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/nps/types.go b/internal/collector/nps/types.go index f9d7bd1c..82369b94 100644 --- a/internal/collector/nps/types.go +++ b/internal/collector/nps/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/os/os.go b/internal/collector/os/os.go index dadb71b2..25d4ee4e 100644 --- a/internal/collector/os/os.go +++ b/internal/collector/os/os.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/os/os_test.go b/internal/collector/os/os_test.go index c7281db7..e00f5607 100644 --- a/internal/collector/os/os_test.go +++ b/internal/collector/os/os_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/pagefile/pagefile.go b/internal/collector/pagefile/pagefile.go index a3ce87fd..b87f326b 100644 --- a/internal/collector/pagefile/pagefile.go +++ b/internal/collector/pagefile/pagefile.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/pagefile/pagefile_test.go b/internal/collector/pagefile/pagefile_test.go index 128871e2..bafbe8f8 100644 --- a/internal/collector/pagefile/pagefile_test.go +++ b/internal/collector/pagefile/pagefile_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/pagefile/types.go b/internal/collector/pagefile/types.go index 7145252b..25512aeb 100644 --- a/internal/collector/pagefile/types.go +++ b/internal/collector/pagefile/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/performancecounter/performancecounter.go b/internal/collector/performancecounter/performancecounter.go index 3d0b7f31..d68e7423 100644 --- a/internal/collector/performancecounter/performancecounter.go +++ b/internal/collector/performancecounter/performancecounter.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/performancecounter/performancecounter_test.go b/internal/collector/performancecounter/performancecounter_test.go index be5e6737..08c38f80 100644 --- a/internal/collector/performancecounter/performancecounter_test.go +++ b/internal/collector/performancecounter/performancecounter_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/performancecounter/performancecounter_test_test.go b/internal/collector/performancecounter/performancecounter_test_test.go index b4b0c7da..bc8c2180 100644 --- a/internal/collector/performancecounter/performancecounter_test_test.go +++ b/internal/collector/performancecounter/performancecounter_test_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/performancecounter/types.go b/internal/collector/performancecounter/types.go index 009d88b2..6cc4b6f0 100644 --- a/internal/collector/performancecounter/types.go +++ b/internal/collector/performancecounter/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/physical_disk/physical_disk.go b/internal/collector/physical_disk/physical_disk.go index 0c44413c..2887e564 100644 --- a/internal/collector/physical_disk/physical_disk.go +++ b/internal/collector/physical_disk/physical_disk.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/physical_disk/physical_disk_test.go b/internal/collector/physical_disk/physical_disk_test.go index 0756784a..8c52f605 100644 --- a/internal/collector/physical_disk/physical_disk_test.go +++ b/internal/collector/physical_disk/physical_disk_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/physical_disk/types.go b/internal/collector/physical_disk/types.go index de5dba70..2795933c 100644 --- a/internal/collector/physical_disk/types.go +++ b/internal/collector/physical_disk/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/printer/printer.go b/internal/collector/printer/printer.go index e2f29669..55b92f6b 100644 --- a/internal/collector/printer/printer.go +++ b/internal/collector/printer/printer.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/printer/printer_test.go b/internal/collector/printer/printer_test.go index 42455625..dac5c1cc 100644 --- a/internal/collector/printer/printer_test.go +++ b/internal/collector/printer/printer_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/process/process.go b/internal/collector/process/process.go index 6dfbca0a..f32b4873 100644 --- a/internal/collector/process/process.go +++ b/internal/collector/process/process.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/process/process_test.go b/internal/collector/process/process_test.go index 07afde74..027d7bc6 100644 --- a/internal/collector/process/process_test.go +++ b/internal/collector/process/process_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/process/process_v1.go b/internal/collector/process/process_v1.go index da9da177..7ee4f659 100644 --- a/internal/collector/process/process_v1.go +++ b/internal/collector/process/process_v1.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/process/process_v2.go b/internal/collector/process/process_v2.go index f42a50ac..e6364219 100644 --- a/internal/collector/process/process_v2.go +++ b/internal/collector/process/process_v2.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/process/types.go b/internal/collector/process/types.go index 5d09e6d0..c8527b8a 100644 --- a/internal/collector/process/types.go +++ b/internal/collector/process/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/remote_fx/remote_fx.go b/internal/collector/remote_fx/remote_fx.go index 3106e57f..dcf6655e 100644 --- a/internal/collector/remote_fx/remote_fx.go +++ b/internal/collector/remote_fx/remote_fx.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/remote_fx/remote_fx_test.go b/internal/collector/remote_fx/remote_fx_test.go index 48b18c4f..b1254304 100644 --- a/internal/collector/remote_fx/remote_fx_test.go +++ b/internal/collector/remote_fx/remote_fx_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/remote_fx/types.go b/internal/collector/remote_fx/types.go index ff1b81aa..7dcd3cdd 100644 --- a/internal/collector/remote_fx/types.go +++ b/internal/collector/remote_fx/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/scheduled_task/scheduled_task.go b/internal/collector/scheduled_task/scheduled_task.go index da8931d5..fea00d2f 100644 --- a/internal/collector/scheduled_task/scheduled_task.go +++ b/internal/collector/scheduled_task/scheduled_task.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/scheduled_task/scheduled_task_test.go b/internal/collector/scheduled_task/scheduled_task_test.go index a6561cba..91e8c72d 100644 --- a/internal/collector/scheduled_task/scheduled_task_test.go +++ b/internal/collector/scheduled_task/scheduled_task_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/service/service.go b/internal/collector/service/service.go index 56b3f9c5..8972ccfe 100644 --- a/internal/collector/service/service.go +++ b/internal/collector/service/service.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/service/service_test.go b/internal/collector/service/service_test.go index 3115e79f..69a99753 100644 --- a/internal/collector/service/service_test.go +++ b/internal/collector/service/service_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smb/smb.go b/internal/collector/smb/smb.go index 5f1ac3ec..e3e071e9 100644 --- a/internal/collector/smb/smb.go +++ b/internal/collector/smb/smb.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smb/smb_test.go b/internal/collector/smb/smb_test.go index 5cfedfc5..b8747969 100644 --- a/internal/collector/smb/smb_test.go +++ b/internal/collector/smb/smb_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smb/types.go b/internal/collector/smb/types.go index 66706e51..aa1e642b 100644 --- a/internal/collector/smb/types.go +++ b/internal/collector/smb/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smbclient/smbclient.go b/internal/collector/smbclient/smbclient.go index 304e90c6..b9f31f32 100644 --- a/internal/collector/smbclient/smbclient.go +++ b/internal/collector/smbclient/smbclient.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smbclient/smbclient_test.go b/internal/collector/smbclient/smbclient_test.go index 56c99244..1b0b9040 100644 --- a/internal/collector/smbclient/smbclient_test.go +++ b/internal/collector/smbclient/smbclient_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smbclient/types.go b/internal/collector/smbclient/types.go index 52b135fd..7b5a968d 100644 --- a/internal/collector/smbclient/types.go +++ b/internal/collector/smbclient/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smtp/smtp.go b/internal/collector/smtp/smtp.go index 193b6f0b..8532980c 100644 --- a/internal/collector/smtp/smtp.go +++ b/internal/collector/smtp/smtp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smtp/smtp_test.go b/internal/collector/smtp/smtp_test.go index f8fe9762..3ab2aa45 100644 --- a/internal/collector/smtp/smtp_test.go +++ b/internal/collector/smtp/smtp_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/smtp/types.go b/internal/collector/smtp/types.go index fd2b84ae..fb557dcd 100644 --- a/internal/collector/smtp/types.go +++ b/internal/collector/smtp/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/system/system.go b/internal/collector/system/system.go index c9f5782c..4d657830 100644 --- a/internal/collector/system/system.go +++ b/internal/collector/system/system.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/system/system_test.go b/internal/collector/system/system_test.go index 2892c35e..86c1daf3 100644 --- a/internal/collector/system/system_test.go +++ b/internal/collector/system/system_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/system/types.go b/internal/collector/system/types.go index e56ee38c..bf725189 100644 --- a/internal/collector/system/types.go +++ b/internal/collector/system/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/tcp/tcp.go b/internal/collector/tcp/tcp.go index 1f160d06..173827b1 100644 --- a/internal/collector/tcp/tcp.go +++ b/internal/collector/tcp/tcp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/tcp/tcp_test.go b/internal/collector/tcp/tcp_test.go index 2875aeb0..273f651b 100644 --- a/internal/collector/tcp/tcp_test.go +++ b/internal/collector/tcp/tcp_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/tcp/types.go b/internal/collector/tcp/types.go index 1ae493f8..2508e42e 100644 --- a/internal/collector/tcp/types.go +++ b/internal/collector/tcp/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/terminal_services/terminal_services.go b/internal/collector/terminal_services/terminal_services.go index 16ea0e8c..0b7a48e4 100644 --- a/internal/collector/terminal_services/terminal_services.go +++ b/internal/collector/terminal_services/terminal_services.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/terminal_services/terminal_services_test.go b/internal/collector/terminal_services/terminal_services_test.go index 8c6edf7d..cfc645bc 100644 --- a/internal/collector/terminal_services/terminal_services_test.go +++ b/internal/collector/terminal_services/terminal_services_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/terminal_services/types.go b/internal/collector/terminal_services/types.go index e0fc9677..9407bd4b 100644 --- a/internal/collector/terminal_services/types.go +++ b/internal/collector/terminal_services/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/textfile/textfile.go b/internal/collector/textfile/textfile.go index 54ad7c7b..d3574e5f 100644 --- a/internal/collector/textfile/textfile.go +++ b/internal/collector/textfile/textfile.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/textfile/textfile_test.go b/internal/collector/textfile/textfile_test.go index 0f6ec414..d9a3bf7a 100644 --- a/internal/collector/textfile/textfile_test.go +++ b/internal/collector/textfile/textfile_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/textfile/textfile_test_test.go b/internal/collector/textfile/textfile_test_test.go index fcc38388..b8615bea 100644 --- a/internal/collector/textfile/textfile_test_test.go +++ b/internal/collector/textfile/textfile_test_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/thermalzone/thermalzone.go b/internal/collector/thermalzone/thermalzone.go index 3cc37897..83b435cf 100644 --- a/internal/collector/thermalzone/thermalzone.go +++ b/internal/collector/thermalzone/thermalzone.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/thermalzone/thermalzone_test.go b/internal/collector/thermalzone/thermalzone_test.go index 87ca976e..bd1efcce 100644 --- a/internal/collector/thermalzone/thermalzone_test.go +++ b/internal/collector/thermalzone/thermalzone_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/thermalzone/types.go b/internal/collector/thermalzone/types.go index 24626f0e..27a3557c 100644 --- a/internal/collector/thermalzone/types.go +++ b/internal/collector/thermalzone/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/time/time.go b/internal/collector/time/time.go index 802ad988..f61daa27 100644 --- a/internal/collector/time/time.go +++ b/internal/collector/time/time.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/time/time_test.go b/internal/collector/time/time_test.go index e691c8d3..acc26e00 100644 --- a/internal/collector/time/time_test.go +++ b/internal/collector/time/time_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/time/types.go b/internal/collector/time/types.go index 25f6d63e..723ab603 100644 --- a/internal/collector/time/types.go +++ b/internal/collector/time/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/udp/types.go b/internal/collector/udp/types.go index 5cf62cb6..84bc038f 100644 --- a/internal/collector/udp/types.go +++ b/internal/collector/udp/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/udp/udp.go b/internal/collector/udp/udp.go index a277f34c..0a7c656c 100644 --- a/internal/collector/udp/udp.go +++ b/internal/collector/udp/udp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/udp/udp_test.go b/internal/collector/udp/udp_test.go index 91fae831..05c11b9b 100644 --- a/internal/collector/udp/udp_test.go +++ b/internal/collector/udp/udp_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/update/update.go b/internal/collector/update/update.go index 03c72b05..63fd62c5 100644 --- a/internal/collector/update/update.go +++ b/internal/collector/update/update.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/update/update_test.go b/internal/collector/update/update_test.go index 0d38121b..ddf430e4 100644 --- a/internal/collector/update/update_test.go +++ b/internal/collector/update/update_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/vmware/types.go b/internal/collector/vmware/types.go index dffd8d8e..233d8044 100644 --- a/internal/collector/vmware/types.go +++ b/internal/collector/vmware/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/vmware/vmware.go b/internal/collector/vmware/vmware.go index ea9880bf..60a8f5de 100644 --- a/internal/collector/vmware/vmware.go +++ b/internal/collector/vmware/vmware.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/collector/vmware/vmware_test.go b/internal/collector/vmware/vmware_test.go index 9327c003..5ec3750a 100644 --- a/internal/collector/vmware/vmware_test.go +++ b/internal/collector/vmware/vmware_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/config/config.go b/internal/config/config.go index eed405cd..dd16ff00 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/config/flatten.go b/internal/config/flatten.go index cef7eae1..1dbe3941 100644 --- a/internal/config/flatten.go +++ b/internal/config/flatten.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/config/flatten_test.go b/internal/config/flatten_test.go index 0b8b908e..4a092cdf 100644 --- a/internal/config/flatten_test.go +++ b/internal/config/flatten_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/dhcpsapi/dhcpsapi.go b/internal/headers/dhcpsapi/dhcpsapi.go index 4e4472a6..8c7b6d36 100644 --- a/internal/headers/dhcpsapi/dhcpsapi.go +++ b/internal/headers/dhcpsapi/dhcpsapi.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/dhcpsapi/dhcpsapi_test.go b/internal/headers/dhcpsapi/dhcpsapi_test.go index bf2df8e7..ea4237d5 100644 --- a/internal/headers/dhcpsapi/dhcpsapi_test.go +++ b/internal/headers/dhcpsapi/dhcpsapi_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/dhcpsapi/types.go b/internal/headers/dhcpsapi/types.go index 0ce0d042..6ffb78fb 100644 --- a/internal/headers/dhcpsapi/types.go +++ b/internal/headers/dhcpsapi/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -21,7 +21,7 @@ import ( "encoding/binary" "net" - "github.com/prometheus-community/windows_exporter/internal/headers/win32api" + "github.com/prometheus-community/windows_exporter/internal/headers/win32" "golang.org/x/sys/windows" ) @@ -46,8 +46,8 @@ type DHCPV4Scope struct { } type ( - DHCP_IP_ADDRESS win32api.DWORD - DHCP_IP_MASK win32api.DWORD + DHCP_IP_ADDRESS win32.DWORD + DHCP_IP_MASK win32.DWORD ) func (ip DHCP_IP_ADDRESS) IPv4() net.IP { @@ -67,31 +67,31 @@ func (ip DHCP_IP_MASK) IPv4Mask() net.IPMask { } type DHCP_SUPER_SCOPE_TABLE struct { - Count win32api.DWORD + Count win32.DWORD Entries *DHCP_SUPER_SCOPE_TABLE_ENTRY } type DHCP_SUPER_SCOPE_TABLE_ENTRY struct { SubnetAddress DHCP_IP_ADDRESS - SuperScopeNumber win32api.DWORD - NextInSuperScope win32api.DWORD - SuperScopeName win32api.LPWSTR + SuperScopeNumber win32.DWORD + NextInSuperScope win32.DWORD + SuperScopeName win32.LPWSTR } // DHCP_SUBNET_INFO https://learn.microsoft.com/de-de/windows/win32/api/dhcpsapi/ns-dhcpsapi-dhcp_subnet_info type DHCP_SUBNET_INFO struct { SubnetAddress DHCP_IP_ADDRESS SubnetMask DHCP_IP_MASK - SubnetName win32api.LPWSTR - SubnetComment win32api.LPWSTR + SubnetName win32.LPWSTR + SubnetComment win32.LPWSTR PrimaryHost DHCP_HOST_INFO SubnetState DHCP_SUBNET_STATE } type DHCP_HOST_INFO struct { IpAddress DHCP_IP_ADDRESS - NetBiosName win32api.LPWSTR - HostName win32api.LPWSTR + NetBiosName win32.LPWSTR + HostName win32.LPWSTR } // DHCP_SUBNET_STATE https://learn.microsoft.com/de-de/windows/win32/api/dhcpsapi/ne-dhcpsapi-dhcp_subnet_state @@ -115,40 +115,40 @@ var DHCP_SUBNET_STATE_NAMES = map[DHCP_SUBNET_STATE]string{ } type DHCP_FAILOVER_STATISTICS struct { - NumAddr win32api.DWORD - AddrFree win32api.DWORD - AddrInUse win32api.DWORD - PartnerAddrFree win32api.DWORD - ThisAddrFree win32api.DWORD - PartnerAddrInUse win32api.DWORD - ThisAddrInUse win32api.DWORD + NumAddr win32.DWORD + AddrFree win32.DWORD + AddrInUse win32.DWORD + PartnerAddrFree win32.DWORD + ThisAddrFree win32.DWORD + PartnerAddrInUse win32.DWORD + ThisAddrInUse win32.DWORD } type DHCP_MIB_INFO_V5 struct { - Discovers win32api.DWORD - Offers win32api.DWORD - Requests win32api.DWORD - Acks win32api.DWORD - Naks win32api.DWORD - Declines win32api.DWORD - Releases win32api.DWORD - ServerStartTime win32api.DATE_TIME - QtnNumLeases win32api.DWORD - QtnPctQtnLeases win32api.DWORD - QtnProbationLeases win32api.DWORD - QtnNonQtnLeases win32api.DWORD - QtnExemptLeases win32api.DWORD - QtnCapableClients win32api.DWORD - QtnIASErrors win32api.DWORD - DelayedOffers win32api.DWORD - ScopesWithDelayedOffers win32api.DWORD - Scopes win32api.DWORD + Discovers win32.DWORD + Offers win32.DWORD + Requests win32.DWORD + Acks win32.DWORD + Naks win32.DWORD + Declines win32.DWORD + Releases win32.DWORD + ServerStartTime win32.DATE_TIME + QtnNumLeases win32.DWORD + QtnPctQtnLeases win32.DWORD + QtnProbationLeases win32.DWORD + QtnNonQtnLeases win32.DWORD + QtnExemptLeases win32.DWORD + QtnCapableClients win32.DWORD + QtnIASErrors win32.DWORD + DelayedOffers win32.DWORD + ScopesWithDelayedOffers win32.DWORD + Scopes win32.DWORD ScopeInfo *DHCP_SUBNET_MIB_INFO_V5 } type DHCP_SUBNET_MIB_INFO_V5 struct { Subnet DHCP_IP_ADDRESS - NumAddressesInUse win32api.DWORD - NumAddressesFree win32api.DWORD - NumPendingOffers win32api.DWORD + NumAddressesInUse win32.DWORD + NumAddressesFree win32.DWORD + NumPendingOffers win32.DWORD } diff --git a/internal/headers/iphlpapi/const.go b/internal/headers/iphlpapi/const.go index fe1cac83..4ae98d01 100644 --- a/internal/headers/iphlpapi/const.go +++ b/internal/headers/iphlpapi/const.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/iphlpapi/iphlpapi.go b/internal/headers/iphlpapi/iphlpapi.go index 512b47d0..1dad32fc 100644 --- a/internal/headers/iphlpapi/iphlpapi.go +++ b/internal/headers/iphlpapi/iphlpapi.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/iphlpapi/iphlpapi_test.go b/internal/headers/iphlpapi/iphlpapi_test.go index 2278e881..7fc8d020 100644 --- a/internal/headers/iphlpapi/iphlpapi_test.go +++ b/internal/headers/iphlpapi/iphlpapi_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/iphlpapi/types.go b/internal/headers/iphlpapi/types.go index 182e5162..cc2509fc 100644 --- a/internal/headers/iphlpapi/types.go +++ b/internal/headers/iphlpapi/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/kernel32/kernel32.go b/internal/headers/kernel32/kernel32.go index 0a13bb16..a8375d56 100644 --- a/internal/headers/kernel32/kernel32.go +++ b/internal/headers/kernel32/kernel32.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/netapi32/netapi32.go b/internal/headers/netapi32/netapi32.go index 5c4cb5f5..d820ee45 100644 --- a/internal/headers/netapi32/netapi32.go +++ b/internal/headers/netapi32/netapi32.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/psapi/psapi.go b/internal/headers/psapi/psapi.go index 3fcc8d47..e9e4e023 100644 --- a/internal/headers/psapi/psapi.go +++ b/internal/headers/psapi/psapi.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/schedule_service/schedule_service.go b/internal/headers/schedule_service/schedule_service.go index c3f142b5..27fcbc5a 100644 --- a/internal/headers/schedule_service/schedule_service.go +++ b/internal/headers/schedule_service/schedule_service.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/secur32/secur32.go b/internal/headers/secur32/secur32.go index d1a0ecf5..e8ea42b2 100644 --- a/internal/headers/secur32/secur32.go +++ b/internal/headers/secur32/secur32.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/secur32/secur32_test.go b/internal/headers/secur32/secur32_test.go index 9344782c..bfd975e9 100644 --- a/internal/headers/secur32/secur32_test.go +++ b/internal/headers/secur32/secur32_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/secur32/types.go b/internal/headers/secur32/types.go index 9303c2a2..dc8e50c3 100644 --- a/internal/headers/secur32/types.go +++ b/internal/headers/secur32/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/slc/slc.go b/internal/headers/slc/slc.go index 2e132a48..de2aa6f2 100644 --- a/internal/headers/slc/slc.go +++ b/internal/headers/slc/slc.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/sysinfoapi/sysinfoapi.go b/internal/headers/sysinfoapi/sysinfoapi.go index c33ee432..c4533ea8 100644 --- a/internal/headers/sysinfoapi/sysinfoapi.go +++ b/internal/headers/sysinfoapi/sysinfoapi.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/headers/win32api/types.go b/internal/headers/win32/types.go similarity index 50% rename from internal/headers/win32api/types.go rename to internal/headers/win32/types.go index 06fcecec..a6069aff 100644 --- a/internal/headers/win32api/types.go +++ b/internal/headers/win32/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -15,9 +15,13 @@ //go:build windows -package win32api +package win32 -import "golang.org/x/sys/windows" +import ( + "unsafe" + + "golang.org/x/sys/windows" +) type ( DATE_TIME = windows.Filetime @@ -27,6 +31,27 @@ type ( } ) -func (s LPWSTR) String() string { +// NewLPWSTR creates a new LPWSTR from a string. +// If the string is empty, it returns nil. +// This function converts the string to a UTF-16 pointer. +func NewLPWSTR(str string) *LPWSTR { + if str == "" { + return nil + } + + // Convert the string to a UTF-16 pointer + ptr, _ := windows.UTF16PtrFromString(str) + + return &LPWSTR{ptr} +} + +// Pointer returns the uintptr representation of the LPWSTR. +// This is useful for passing the pointer to Windows API functions. +func (s *LPWSTR) Pointer() uintptr { + return uintptr(unsafe.Pointer(s.uint16)) +} + +// String converts the LPWSTR back to a string. +func (s *LPWSTR) String() string { return windows.UTF16PtrToString(s.uint16) } diff --git a/internal/headers/wtsapi32/wtsapi32.go b/internal/headers/wtsapi32/wtsapi32.go index 3f129a95..5eb6f79e 100644 --- a/internal/headers/wtsapi32/wtsapi32.go +++ b/internal/headers/wtsapi32/wtsapi32.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/httphandler/health.go b/internal/httphandler/health.go index f89ae21f..94243cdc 100644 --- a/internal/httphandler/health.go +++ b/internal/httphandler/health.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/httphandler/httphandler.go b/internal/httphandler/httphandler.go index bc951903..87bfb847 100644 --- a/internal/httphandler/httphandler.go +++ b/internal/httphandler/httphandler.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/httphandler/version.go b/internal/httphandler/version.go index 980b9657..ca94063b 100644 --- a/internal/httphandler/version.go +++ b/internal/httphandler/version.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/log/eventlog/eventlog.go b/internal/log/eventlog/eventlog.go index e6edd5c0..3de637ef 100644 --- a/internal/log/eventlog/eventlog.go +++ b/internal/log/eventlog/eventlog.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/log/flag/flag.go b/internal/log/flag/flag.go index 9f192bbf..21794374 100644 --- a/internal/log/flag/flag.go +++ b/internal/log/flag/flag.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/log/logger.go b/internal/log/logger.go index 4d4c22f4..fb6d4872 100644 --- a/internal/log/logger.go +++ b/internal/log/logger.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/application.go b/internal/mi/application.go index 54f72f30..c4c4e42a 100644 --- a/internal/mi/application.go +++ b/internal/mi/application.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/callbacks.go b/internal/mi/callbacks.go index 2f08e60a..f9ad7de0 100644 --- a/internal/mi/callbacks.go +++ b/internal/mi/callbacks.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/doc.go b/internal/mi/doc.go index cc7c7f3b..58cf9dff 100644 --- a/internal/mi/doc.go +++ b/internal/mi/doc.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/errors.go b/internal/mi/errors.go index 7b506650..c3baaa92 100644 --- a/internal/mi/errors.go +++ b/internal/mi/errors.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/instance.go b/internal/mi/instance.go index 1b86a6aa..3018bd2a 100644 --- a/internal/mi/instance.go +++ b/internal/mi/instance.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/mi_bench_test.go b/internal/mi/mi_bench_test.go index e0fe51de..c75fdb73 100644 --- a/internal/mi/mi_bench_test.go +++ b/internal/mi/mi_bench_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/mi_test.go b/internal/mi/mi_test.go index 1300c933..7024c63b 100644 --- a/internal/mi/mi_test.go +++ b/internal/mi/mi_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/operation.go b/internal/mi/operation.go index 9eb96a7a..4a4443dd 100644 --- a/internal/mi/operation.go +++ b/internal/mi/operation.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/result.go b/internal/mi/result.go index f2afb927..745058bd 100644 --- a/internal/mi/result.go +++ b/internal/mi/result.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/session.go b/internal/mi/session.go index b04b4ac9..67be7515 100644 --- a/internal/mi/session.go +++ b/internal/mi/session.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/types.go b/internal/mi/types.go index ff238382..4ef5a8c0 100644 --- a/internal/mi/types.go +++ b/internal/mi/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/mi/value.go b/internal/mi/value.go index bbd1e41a..b0d4a89d 100644 --- a/internal/mi/value.go +++ b/internal/mi/value.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/collector.go b/internal/pdh/collector.go index 012ad430..6b48dc42 100644 --- a/internal/pdh/collector.go +++ b/internal/pdh/collector.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/collector_bench_test.go b/internal/pdh/collector_bench_test.go index 352f0e44..9766b59e 100644 --- a/internal/pdh/collector_bench_test.go +++ b/internal/pdh/collector_bench_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/collector_test.go b/internal/pdh/collector_test.go index 1abdad12..28505912 100644 --- a/internal/pdh/collector_test.go +++ b/internal/pdh/collector_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/const.go b/internal/pdh/const.go index 9bc49329..36b24268 100644 --- a/internal/pdh/const.go +++ b/internal/pdh/const.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/error.go b/internal/pdh/error.go index e7061f6b..dc6d784e 100644 --- a/internal/pdh/error.go +++ b/internal/pdh/error.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/pdh.go b/internal/pdh/pdh.go index edc86703..ffc17a04 100644 --- a/internal/pdh/pdh.go +++ b/internal/pdh/pdh.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/collector.go b/internal/pdh/registry/collector.go index e99e51fd..4751c3fd 100644 --- a/internal/pdh/registry/collector.go +++ b/internal/pdh/registry/collector.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/nametable.go b/internal/pdh/registry/nametable.go index c81a7264..d09b337b 100644 --- a/internal/pdh/registry/nametable.go +++ b/internal/pdh/registry/nametable.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/perflib.go b/internal/pdh/registry/perflib.go index 1258f271..6053eb15 100644 --- a/internal/pdh/registry/perflib.go +++ b/internal/pdh/registry/perflib.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/perflib_test.go b/internal/pdh/registry/perflib_test.go index 515225ed..ecc74359 100644 --- a/internal/pdh/registry/perflib_test.go +++ b/internal/pdh/registry/perflib_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/raw_types.go b/internal/pdh/registry/raw_types.go index e2861682..bd04593f 100644 --- a/internal/pdh/registry/raw_types.go +++ b/internal/pdh/registry/raw_types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/utf16.go b/internal/pdh/registry/utf16.go index 01eea469..ca39d271 100644 --- a/internal/pdh/registry/utf16.go +++ b/internal/pdh/registry/utf16.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/registry/utils.go b/internal/pdh/registry/utils.go index 49e4c236..5add71ce 100644 --- a/internal/pdh/registry/utils.go +++ b/internal/pdh/registry/utils.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/types.go b/internal/pdh/types.go index 595ca364..7b753d7b 100644 --- a/internal/pdh/types.go +++ b/internal/pdh/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/pdh/types/types.go b/internal/pdh/types/types.go index 8d905036..bf38ecce 100644 --- a/internal/pdh/types/types.go +++ b/internal/pdh/types/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/types/const.go b/internal/types/const.go index d2d2c9de..1a7e8147 100644 --- a/internal/types/const.go +++ b/internal/types/const.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/types/errors.go b/internal/types/errors.go index eb16825d..8892c98d 100644 --- a/internal/types/errors.go +++ b/internal/types/errors.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/types/regexp.go b/internal/types/regexp.go index 7bf33832..11681413 100644 --- a/internal/types/regexp.go +++ b/internal/types/regexp.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/utils/counter.go b/internal/utils/counter.go index 1ed38f69..4c5e5b23 100644 --- a/internal/utils/counter.go +++ b/internal/utils/counter.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/utils/counter_test.go b/internal/utils/counter_test.go index a13f969e..911e1b36 100644 --- a/internal/utils/counter_test.go +++ b/internal/utils/counter_test.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/utils/testutils/testutils.go b/internal/utils/testutils/testutils.go index 4dfa0194..6408299f 100644 --- a/internal/utils/testutils/testutils.go +++ b/internal/utils/testutils/testutils.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/internal/utils/utils.go b/internal/utils/utils.go index f9f29779..aad1a783 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/pkg/collector/collect.go b/pkg/collector/collect.go index d67b180d..c52fe268 100644 --- a/pkg/collector/collect.go +++ b/pkg/collector/collect.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/pkg/collector/collection.go b/pkg/collector/collection.go index 8241bedb..5f4f782a 100644 --- a/pkg/collector/collection.go +++ b/pkg/collector/collection.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -291,6 +291,10 @@ func (c *Collection) initMI() error { return fmt.Errorf("error from set locale: %w", err) } + if err = destinationOptions.SetTimeout(gotime.Second); err != nil { + return fmt.Errorf("error from set timeout: %w", err) + } + c.miSession, err = app.NewSession(destinationOptions) if err != nil { return fmt.Errorf("error from create NewSession: %w", err) diff --git a/pkg/collector/config.go b/pkg/collector/config.go index 7811e36d..498632e7 100644 --- a/pkg/collector/config.go +++ b/pkg/collector/config.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/pkg/collector/handler.go b/pkg/collector/handler.go index 8819d4ca..5b683275 100644 --- a/pkg/collector/handler.go +++ b/pkg/collector/handler.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/pkg/collector/map.go b/pkg/collector/map.go index edb25dc9..7b4e692b 100644 --- a/pkg/collector/map.go +++ b/pkg/collector/map.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/pkg/collector/types.go b/pkg/collector/types.go index fe668bc2..71d69ba0 100644 --- a/pkg/collector/types.go +++ b/pkg/collector/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // -// Copyright 2025 The Prometheus Authors +// Copyright The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at