Table of Contents
MetricsHub
MetricsHub 1.0.04-SNAPSHOT
-
Home
- Custom Monitoring
Windows Service Monitoring
You can configure MetricsHub to monitor a Windows service. In the example below, we configured MetricsHub to monitor the httpd service 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
WMIprotocol withcredentialsandtimeout
protocols:
wmi:
username: <username>
password: <password>
timeout: 30
- Add an additional connector (
WindowsServiceHttpd) using theWindowsServicemodule
additionalConnectors:
WindowsServiceHttpd:
uses: WindowsService
- Set the variable
serviceNamesto specify the service to be monitored (httpd).
variables:
serviceNames: httpd
Here is the complete YAML configuration:
resources:
prod-win-web:
attributes:
host.name: prod-win-web
host.type: windows
protocols:
wmi:
username: <username>
password: <password>
timeout: 30
additionalConnectors:
WindowsServiceHttpd:
uses: WindowsService
variables:
serviceNames: httpd
Supporting Resources
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.
