Add windows service name lookup to procstat input (#4811)
This commit is contained in:
11
plugins/inputs/procstat/win_service_notwindows.go
Normal file
11
plugins/inputs/procstat/win_service_notwindows.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// +build !windows
|
||||
|
||||
package procstat
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func queryPidWithWinServiceName(winServiceName string) (uint32, error) {
|
||||
return 0, fmt.Errorf("os not support win_service option")
|
||||
}
|
||||
Reference in New Issue
Block a user