Monitoring Windows Service

You are here:

Goal

Determine whether or not windows service is running.

Solution

Use monitoring agent to poll status of Windows service using WMI on periodic basis. Collect and send metrics to desired monitoring system.

Advice

Learn how to configure WMI input adapter.

Steps

Windows service status can be retrieved from WMI on periodic basis. The below steps describe how to collect and send windows service status to Prometheus:

Step1: Define new Sonar array

Create new file mssvc-basic.sonar.config in Sonar root directory with the following content:

XML
mssvc-basic.sonar.config

Step 2: Configure Monitoring Agent

This step registers array configuration for use by monitoring agent at runtime. To accomplish this step, reference array to use WMI input adapter and Prometheus as default output and restart Sonar:

XML
sonar.config

Step 3: Create Dashboard

To view metrics, create dashboard in Grafana, similar to one shown below:

Advice

Learn how to configure Prometheus deployed on Kubernetes to discover external Windows metrics.

Last Updated On February 24, 2019