MSSQL database is a Relational Database Management System (RDBMS) that is designed to store, analyze and retrieve data efficiently.

In Linux/Unix, a Java-based agent is used. In Windows, you can use a .NET-based agent (preferred) or a Java-based agent. The agent runs the queries periodically to collect metrics/detailed DB information. Two types of monitoring are supported for MSSQL:

Time-Series Metric Monitoring (TSMM) - TSMM collects metrics that can be used to visualize the performance of your MSSQL DB on our dashboard. An extensive coverage includes multiple data points from the following categories:

Detailed DB Monitoring (DDBM) - DDBM gives you deeper insight into the performance of your MSSQL DB by capturing currently running queries, sessions, locks, DB I/O Stats, etc. The metrics that are to be captured can be checked from this configuration page and the detailed DB Monitoring module can be accessed by clicking on Configurations => Actions => DB Monitoring. Following metric groups are captured as part of detailed DB monitoring:

Platform(s) Supported:

MSSQL Versions Supported:

Pre-Requisites:

USE [master]
GO
CREATE USER [cavisson] FOR LOGIN [cavisson]
GO
USE [master]
GO
ALTER USER [cavisson] WITH DEFAULT_SCHEMA=[sys]
GO
use [master]
GO
GRANT VIEW SERVER STATE TO [cavisson]
GO.

Note: Here the username is cavisson. In the above query, View is the permission, Master is the database and Sys is the schema.

Configurations Steps:

To successfully configure MSSQL database monitoring, you are required to fill the following fields:

Notes:

Configuration of Time Series Metric Monitors:

Deploy Monitors

You also have the option to deploy monitors using Cavisson Agent. The following fields needs to be filled to deploy:

  1. Tier: In this, the monitors which can be deployed can be viewed. Select the required monitors from the drop-down list.
  2. Server: Servers can be selected as per the user's requirement, i.e. with monitors a user requires all servers, any server or a specified server. Users can select any one of the following:
    • All: It is used to select all the severs.
    • Any: It is used to select any servers from the given list.
    • Specified: It is used to select specific servers from the given list.

Validation

To validate the successful configuration of your MSSQL DB monitors, go to the monitor’s homepage and you will be able to see a corresponding section for MSSQL. Click on the monitor section to view a list of all the configured monitors, their corresponding metric category, and their status (Running, Disabled, Failed). To validate detailed DB monitoring, check for the configured database under DB Monitoring icon on the dashboard.