mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 06:36:36 +00:00
feat: Tolerate collector failures (#1769)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -144,6 +144,7 @@ const (
|
||||
PdhQueryPerfDataTimeout uint32 = 0xC0000BFE
|
||||
)
|
||||
|
||||
//nolint:gochecknoglobals
|
||||
var PDHErrors = map[uint32]string{
|
||||
PdhCstatusValidData: "PDH_CSTATUS_VALID_DATA",
|
||||
PdhCstatusNewData: "PDH_CSTATUS_NEW_DATA",
|
||||
@@ -256,6 +257,7 @@ type (
|
||||
pdhCounterHandle HANDLE // counter handle
|
||||
)
|
||||
|
||||
//nolint:gochecknoglobals
|
||||
var (
|
||||
libPdhDll = windows.NewLazySystemDLL("pdh.dll")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user