mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
process: add collector.process.counter-version CLI parameter (#2064)
This commit is contained in:
@@ -63,9 +63,12 @@ func NewCollector[T any](object string, _ []string) (*Collector, error) {
|
||||
}
|
||||
|
||||
for _, f := range reflect.VisibleFields(valueType) {
|
||||
counterName, ok := f.Tag.Lookup("perfdata")
|
||||
counterName, ok := f.Tag.Lookup("perfdata_v1")
|
||||
if !ok {
|
||||
continue
|
||||
counterName, ok = f.Tag.Lookup("perfdata")
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
var counter Counter
|
||||
|
||||
Reference in New Issue
Block a user