feat: Tolerate collector failures (#1769)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-25 21:27:31 +01:00
committed by GitHub
parent fd76be38e0
commit 1a4c6c5ce7
121 changed files with 1726 additions and 1221 deletions

View File

@@ -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")