Table of Contents
MetricsHub
MetricsHub Enterprise 2.1.00
-
Home
- Custom Monitoring
Windows Process Monitoring
You can configure MetricsHub to monitor a Windows process. In the example below, we configured MetricsHub to monitor the sqlservr.exe
process running on the prod-win-web
resource using WMI.
Procedure
To achieve this use case, we:
- Declare the resource to be monitored (
prod-win-web
) and its attributes (host.name
,host.type
)
resources:
prod-win-web:
attributes:
host.name: prod-win-web
host.type: windows
- Configure the
WMI
protocol withcredentials
andtimeout
protocols:
wmi:
username: <username>
password: <username>
timeout: 30
- Add an additional connector (
WindowsProcess
) using theWindowsProcess
module
additionalConnectors:
WindowsProcess:
uses: WindowsProcess
- Set the variable
matchCommand
for the service to be monitored (sqlservr.exe
):
variables:
matchCommand: "sqlservr\\.exe"
Here is the complete YAML configuration:
resources:
prod-win-web:
attributes:
host.name: prod-win-web
host.type: windows
protocols:
wmi:
username: <username>
password: <username>
timeout: 30
additionalConnectors:
WindowsProcess:
uses: WindowsProcess
variables:
matchCommand: "sqlservr\\.exe"
Supporting Resources
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.