mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-13 00:16:37 +00:00
cpu: implement int32 counter for PDH calls as well. (#1715)
This commit is contained in:
@@ -27,8 +27,7 @@ var (
|
||||
AllInstances = []string{"*"}
|
||||
)
|
||||
|
||||
//nolint:ireturn
|
||||
func NewCollector(engine Engine, object string, instances []string, counters []string) (Collector, error) {
|
||||
func NewCollector(engine Engine, object string, instances []string, counters []string) (Collector, error) { //nolint:ireturn
|
||||
switch engine {
|
||||
case V1:
|
||||
return v1.NewCollector(object, instances, counters)
|
||||
|
||||
Reference in New Issue
Block a user