mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-03-22 02:48:59 +00:00
There was added the checking and logging of query worker processes
This commit is contained in:
parent
d58ce114d9
commit
ad29ac0792
@ -194,7 +194,9 @@ func (c *ProcessCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Des
|
||||
|
||||
var dst_wp []WorkerProcess
|
||||
q_wp := queryAll(&dst_wp)
|
||||
wmi.QueryNamespace(q_wp, &dst_wp, "root\\WebAdministration")
|
||||
if err := wmi.QueryNamespace(q_wp, &dst_wp, "root\\WebAdministration"); err != nil {
|
||||
log.Warnf("failed querying worker processes: %s", err)
|
||||
}
|
||||
|
||||
for _, process := range dst {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user