I have windows_exporter installed and configured. I was able to create an alert for when a specific service's state is 0 (ex: for TeamViewer application; windows_service_state{name="TeamViewer",state="running"} != 1)
While testing, If I manually navigate to Services and stop the process, I get an alert. But simple closing application does not generate an alert as the Teamviewer service is running in the backend.
How do I generate alerts if the application is closed? Tried collecting process metrics by "--collector.process.whitelist", but no luck there.