May 3, 2024, 3:07 p.m. | Atsushi Suzuki

DEV Community dev.to

This is the procedure for monitoring the service status of SQLServer on Windows with Prometheu.


++++++++++++++++++++++++++++++++

[environment].

prometheus : Ver. 2.23.0

prometheus-alertmanager : Ver. 0.15.3

++++++++++++++++++++++++++++++++


Describe the SQLserver service monitoring rules in the yml file (rules.yml by default) where the monitoring rules are set.

In this case, we will describe a configuration that alerts when the state of the SQLServer service is anything other than ‘started’.



- alert: SQLServer-ServiceDown
expr: windows_service_state{job="[job name]", name="[target instance service name]", state="running"} == 0 …

case environment file monitoring prometheus rules service set sqlserver sre will windows

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US