mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-27 15:16:35 +00:00
mi: replace all WMI calls with MI calls (#1700)
This commit is contained in:
@@ -35,3 +35,11 @@ func PDHEnabled() bool {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
func MIEnabled() bool {
|
||||
if v, ok := os.LookupEnv("WINDOWS_EXPORTER_WMI_ENGINE"); ok && v == "mi" {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user