1. Grant the Agent Access
For SQL Server running on Azure VM, follow the instructions in the Setting Up Database Monitoring for Self-hosted SQL server documentation to grant the necessary access for monitoring on the Server host VM.2. Configure the Atatus Agent
Step 1: Configure the SQL Server Integration
Edit the/etc/atatus-infra-agent/conf.d/sqlserver.d/sqlserver.yml configuration file in your Atatus Agent installation directory:
Step 2: Restart the Atatus Infra Agent
Enable Schema Collection for SQL Server 2017+ (Optional)
Atatus Agent can collect schema information from SQL Server 2017 and above.Requirements
- Agent v3.4.0 or higher
collect_database_info: truecollect_settings: true- Use
auto_discovery: trueto auto-detect all databases
Configuration Examples
- Collect schemas from all logical databases
Collect Metrics Using Custom Queries (Optional)
You can collect custom metrics from SQL Server using thecustom_queries option in your configuration.