Determine whether or not windows service is running.
Use monitoring agent to poll status of Windows service using WMI on periodic basis. Collect and send metrics to desired monitoring system.
Learn how to configure WMI input adapter.
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:
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:
Step 3: Create Dashboard
To view metrics, create dashboard in Grafana, similar to one shown below:
Learn how to configure Prometheus deployed on Kubernetes to discover external Windows metrics.