The Windows Service Monitor Extension can be used to provide metrics related to service time and service uptime.
-
Before the extension is installed, the prerequisites mentioned here need to be met. Please do not proceed with the extension installation if the specified prerequisites are not met.
-
Download and install Apache Maven which is configured with
Java 8
to build the extension artifact from source. You can check the java version used in maven using commandmvn -v
ormvn --version
. If your maven is using some other java version then please download java 8 for your platform and set JAVA_HOME parameter before starting maven. -
The extension needs to be deployed on the same box as the ones with the windows service to be monitored.
- Clone this repository to your local repository using
git clone <repo-url>
command. - Run
mvn clean install
and find theWindowsServiceMonitorExtension-VERSION.zip
file in thetarget
folder. - Unzip and copy that directory to
<MACHINE_AGENT_HOME>/monitors
Please place the extension in the "monitors" directory of your Machine Agent installation directory. Do not place the extension in the "extensions" directory of your Machine Agent installation directory.
Configure the extension by editing the config.yml
file in <MACHINE_AGENT_HOME>/monitors/WindowsServiceMonitorExtension/
-
Configure the "tier" under which the metrics need to be reported. This can be done by changing the value of
<TIER ID>
inmetricPrefix: "Server|Component:<TIER ID>|Custom Metrics|WindowsServiceMonitorExtension"
If SIM is enabled, please use the default metric prefix. metricPrefix: "Custom Metrics|WindowsServiceMonitorExtension|
More details around metric prefix can be found here.
-
Add the names of the services you want to monitor in the config.yml file.
For example,services: ["XblGameSave", "Ifsvc", "Dhcp"]
-
Configure the encryptionKey for encryptionPasswords(only if password encryption required).
For example,encryptionKey: welcome
-
Configure the
numberOfThreads
depending on the number of concurrent tasks. For example, if you are monitoring three services, and each task for each service runs as a single thread then usenumberOfThreads: 3
.
The extension provides following metrics
-
Service Status
1 : SERVICE_STOPPED
2 : SERVICE_START_PENDING
3 : SERVICE_STOP_PENDING
4 : SERVICE_RUNNING
5 : CONTINUE_PENDING
6 : PAUSE_PENDING
7 : SERVICE_PAUSED
-
Service Uptime In Sec
Will be 0 if service is not running
Please visit this page to get detailed instructions on password encryption. The steps in this document will guide you through the whole process.
Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench
Please follow the steps listed in this troubleshooting-document in order to troubleshoot your issue. These are a set of common issues that customers might have faced during the installation of the extension.
Always feel free to fork and contribute any changes directly via GitHub.
Name | Version |
---|---|
Extension Version | 1.0 |
Last Update | 07/10/2024 |
ChangeList | ChangeLog |