I see the uptime at 0 during a timeframe where our SQL Admin says there was no outage to the instance.
Could someone please point me in the right direction for SQL Instance monitoring? We cannot monitor services either since there are clustered servers where the instance is offline on one server but not the other.
They have one agent but as mentioned this is a problem since some are clustered - meaning one server has it on while the other has it off. causing it to alert. so we would like to monitor the instance state itself.
Best way is to just keep sending any query that is supposed to give an answer. For me i used number of connected users. The entire point is that you aim this metric at the instance, if its clustered or not it doesnt matter as the extension cares whether the ip is correct (travels with clustered instance), the port and the instance name (if you use it for specific instances). Logic is as follows:
1. metric keeps queries the instance for number of connected users.
2. The answer itself doesnt matter, we only care that we get an answer. Even if you monitor the service the instance might be up from system point of view but be stuck internally.
3. Here comes the other part. In metric use a selector and tick “alert on missing data”. If you stop getting answers it means that instance is unavailable and thats what matters.
4. yes, if you have a network outage you will get false alerts but that is inherent to any remote run monitoring type of setup.