mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-07 19:16:36 +00:00
logical_disk: Implement Perfdata collector (#1673)
This commit is contained in:
@@ -77,6 +77,10 @@ func (c *Collector) GetName() string {
|
||||
}
|
||||
|
||||
func (c *Collector) GetPerfCounter(_ *slog.Logger) ([]string, error) {
|
||||
if utils.PDHEnabled() {
|
||||
return []string{}, nil
|
||||
}
|
||||
|
||||
return []string{"DHCP Server"}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user