mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-15 17:36:34 +00:00
feat: Tolerate collector failures (#1769)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -17,7 +17,10 @@ package perfdata
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrNoData = NewPdhError(PdhNoData)
|
||||
var (
|
||||
ErrNoData = NewPdhError(PdhNoData)
|
||||
ErrPerformanceCounterNotInitialized = errors.New("performance counter not initialized")
|
||||
)
|
||||
|
||||
// Error represents error returned from Performance Counters API.
|
||||
type Error struct {
|
||||
|
||||
Reference in New Issue
Block a user