Azure SQL Database is a general-purpose relational database, provided as a managed service. With SQL Database, you can create a highly available and high-performance data storage layer for the applications and solutions in Azure.

Use the Azure public cloud integration to discover and collect metrics against the Azure service.

Setup

To set up the Azure integration and discover the SQL Database, do the following:

  1. Create an Azure Integration if not available in your installed integrations. For more information on on installing the Azure Integration, refer to Install Azure integration.

  2. Create a discovery profile.

  3. Select Azure SQL Database under the Filter Criteria on the Edit Discovery Profile page.

  4. Save the discovery profile to make it available in the list of Discovery Profiles.

  5. Scan to discover the resources at any time independent of the predefined schedule.

  6. Once the scan is completed, you can view the SQL Database resources under Infrastructure > Resources > Microsoft Azure category.

  7. Create a template with collector type Azure and applicable for SQL Database. See Create a Template for more information on how to create a template.

  8. Refer to Assign a Template on assigning a template to a resource.

  9. Click the Metrics tab to view the monitoring data of the Azure SQL Database.

Event support

OpsRamp supports Azure events for Azure SQL Database. Configure Azure Events in OpsRamp Azure integration discovery profile. See Process Azure Events for more information on how to configure Azure events.

Supported metrics

OpsRamp MetricAzure MetricMetric Display NameUnitAggregation TypeDescription
azure_sql_servers_databases_active_queriesactive_queriesActive queriesCountTotalActive queries across all workload groups. Applies only to data warehouses
azure_sql_servers_databases_allocated_data_storageallocated_data_storageData space allocatedBytesAverageAllocated data storage. Not applicable to data warehouses
azure_sql_servers_databases_app_cpu_billedapp_cpu_billedApp CPU billedCountTotalApp CPU billed. Applies to serverless databases
azure_sql_servers_databases_app_cpu_billed_ha_replicasapp_cpu_billed_ha_replicasApp CPU billed HA replicasCountTotalSum of app CPU billed across all HA replicas associated with the primary replica or a named replica
azure_sql_servers_databases_app_cpu_percentapp_cpu_percentApp CPU percentagePercentAverageApp CPU percentage. Applies to serverless databases
azure_sql_servers_databases_app_memory_percentapp_memory_percentApp memory percentagePercentAverageApp memory percentage. Applies to serverless databases
azure_sql_servers_databases_availabilityavailabilityAvailabilityPercentAverageThe percentage of SLA compliant availability for the database. Availability is calculated based on connections and for each one-minute data point the value will be either 100% if connection(s) succeed or 0% if all connections fail due to system errors. Note:Select 1-minute time granularity to view SLA compliant availability
azure_sql_servers_databases_base_blob_size_bytesbase_blob_size_bytesData storage sizeBytesAverageData storage size. Applies to Hyperscale databases
azure_sql_servers_databases_blocked_by_firewallblocked_by_firewallBlocked by FirewallCountTotalBlocked by Firewall
azure_sql_servers_databases_cache_hit_percentcache_hit_percentCache hit percentagePercentAverageCache hit percentage. Applies only to data warehouses
azure_sql_servers_databases_cache_used_percentcache_used_percentCache used percentagePercentAverageCache used percentage. Applies only to data warehouses
azure_sql_servers_databases_connection_failedconnection_failedFailed Connections : System ErrorsCountTotalFailed Connections
azure_sql_servers_databases_connection_failed_user_errorconnection_failed_user_errorFailed Connections : User ErrorsCountTotalFailed Connections : User Errors
azure_sql_servers_databases_connection_successfulconnection_successfulSuccessful ConnectionsCountTotalSuccessful Connections
azure_sql_servers_databases_cpu_limitcpu_limitCPU limitCountAverageCPU limit. Applies to vCore-based databases
azure_sql_servers_databases_cpu_percentcpu_percentCPU percentagePercentAverageCPU percentage
azure_sql_servers_databases_cpu_usedcpu_usedCPU usedCountAverageCPU used. Applies to vCore-based databases
azure_sql_servers_databases_deadlockdeadlockDeadlocksCountTotalDeadlocks. Not applicable to data warehouses
azure_sql_servers_databases_diff_backup_size_bytesdiff_backup_size_bytesDifferential backup storage sizeBytesAverageCumulative differential backup storage size. Applies to vCore-based databases. Not applicable to Hyperscale databases
azure_sql_servers_databases_dtu_consumption_percentdtu_consumption_percentDTU percentagePercentAverageDTU Percentage. Applies to DTU-based databases
azure_sql_servers_databases_dtu_limitdtu_limitDTU LimitCountAverageDTU Limit. Applies to DTU-based databases
azure_sql_servers_databases_dtu_useddtu_usedDTU usedCountAverageDTU used. Applies to DTU-based databases
azure_sql_servers_databases_dwu_consumption_percentdwu_consumption_percentDWU percentagePercentAverageDWU percentage. Applies only to data warehouses
azure_sql_servers_databases_dwu_limitdwu_limitDWU limitCountAverageDWU limit. Applies only to data warehouses
azure_sql_servers_databases_dwu_useddwu_usedDWU usedCountAverageDWU used. Applies only to data warehouses
azure_sql_servers_databases_free_amount_consumedfree_amount_consumedFree amount consumedCountAverageFree amount of vCore seconds consumed this month. Applies only to free database offer
azure_sql_servers_databases_free_amount_remainingfree_amount_remainingFree amount remainingCountAverageFree amount of vCore seconds remaining this month. Applies only to free database offer
azure_sql_servers_databases_full_backup_size_bytesfull_backup_size_bytesFull backup storage sizeBytesAverageCumulative full backup storage size. Applies to vCore-based databases. Not applicable to Hyperscale databases
azure_sql_servers_databases_ledger_digest_upload_failedledger_digest_upload_failedFailed Ledger Digest UploadsCountCountLedger digests that failed to be uploaded
azure_sql_servers_databases_ledger_digest_upload_successledger_digest_upload_successSuccessful Ledger Digest UploadsCountCountLedger digests that were successfully uploaded
azure_sql_servers_databases_local_tempdb_usage_percentlocal_tempdb_usage_percentLocal tempdb percentagePercentAverageLocal tempdb percentage. Applies only to data warehouses
azure_sql_servers_databases_log_backup_size_byteslog_backup_size_bytesLog backup storage sizeBytesAverageCumulative log backup storage size. Applies to vCore-based and Hyperscale databases
azure_sql_servers_databases_log_write_percentlog_write_percentLog IO percentagePercentAverageLog IO percentage. Not applicable to data warehouses
azure_sql_servers_databases_memory_usage_percentmemory_usage_percentMemory percentagePercentAverageMemory percentage. Applies only to data warehouses
azure_sql_servers_databases_physical_data_read_percentphysical_data_read_percentData IO percentagePercentAverageData IO percentage
azure_sql_servers_databases_queued_queriesqueued_queriesQueued queriesCountTotalQueued queries across all workload groups. Applies only to data warehouses
azure_sql_servers_databases_replication_lag_secondsreplication_lag_secondsReplication lagSecondsAverageReplication lag or RPO is the number of seconds that the secondary database is behind the primary database. This value is available on the primary database only
azure_sql_servers_databases_sessions_countsessions_countSessions countCountAverageNumber of active sessions. Not applicable to Synapse DW Analytics
azure_sql_servers_databases_sessions_percentsessions_percentSessions percentagePercentAverageSessions percentage. Not applicable to data warehouses
azure_sql_servers_databases_snapshot_backup_size_bytessnapshot_backup_size_bytesData backup storage sizeBytesAverageCumulative data backup storage size. Applies to Hyperscale databases
azure_sql_servers_databases_storagestorageData space usedBytesAverageData space used. Not applicable to data warehouses
azure_sql_servers_databases_storage_percentstorage_percentData space used percentPercentAverageData space used percent. Not applicable to data warehouses or hyperscale databases
azure_sql_servers_databases_workers_percentworkers_percentWorkers percentagePercentAverageWorkers percentage. Not applicable to data warehouses
azure_sql_servers_databases_xtp_storage_percentxtp_storage_percentIn-Memory OLTP storage percentPercentAverageIn-Memory OLTP storage percent. Not applicable to data warehouses
azure_sql_servers_databases_sql_instance_cpu_percentsql_instance_cpu_percentSQL instance CPU percentPercentAverageCPU usage by all user and system workloads. Not applicable to data warehouses
azure_sql_servers_databases_sql_instance_memory_percentsql_instance_memory_percentSQL instance memory percentPercentAverageMemory usage by the database engine instance. Not applicable to data warehouses
azure_sql_servers_databases_sqlserver_process_core_percentsqlserver_process_core_percentSQL Server process core percentPercentAverageCPU usage as a percentage of the SQL DB process. Not applicable to data warehouses. (This metric is equivalent to sql_instance_cpu_percent, and will be removed in the future.)
azure_sql_servers_databases_sqlserver_process_memory_percentsqlserver_process_memory_percentSQL Server process memory percentPercentAverageMemory usage as a percentage of the SQL DB process. Not applicable to data warehouses. (This metric is equivalent to sql_instance_memory_percent, and will be removed in the future.)
azure_sql_servers_databases_tempdb_data_sizetempdb_data_sizeTempdb Data File Size KilobytesCountAverageSpace used in tempdb data files in kilobytes. Not applicable to data warehouses
azure_sql_servers_databases_tempdb_log_sizetempdb_log_sizeTempdb Log File Size KilobytesCountAverageSpace used in tempdb transaction log file in kilobytes. Not applicable to data warehouses
azure_sql_servers_databases_tempdb_log_used_percenttempdb_log_used_percentTempdb Percent Log UsedPercentAverageSpace used percentage in tempdb transaction log file. Not applicable to data warehouses
azure_sql_servers_databases_wlg_active_querieswlg_active_queriesWorkload group active queriesCountTotalActive queries within the workload group. Applies only to data warehouses
azure_sql_servers_databases_wlg_active_queries_timeoutswlg_active_queries_timeoutsWorkload group query timeoutsCountTotalQueries that have timed out for the workload group. Applies only to data warehouses
azure_sql_servers_databases_wlg_allocation_relative_to_system_percentwlg_allocation_relative_to_system_percentWorkload group allocation by system percentPercentAverageAllocated percentage of resources relative to the entire system per workload group. Applies only to data warehouses
azure_sql_servers_databases_wlg_allocation_relative_to_wlg_effective_cap_percentwlg_allocation_relative_to_wlg_effective_cap_percentWorkload group allocation by cap resource percentPercentAverageAllocated percentage of resources relative to the specified cap resources per workload group. Applies only to data warehouses
azure_sql_servers_databases_wlg_effective_cap_resource_percentwlg_effective_cap_resource_percentEffective cap resource percentPercentAverageA hard limit on the percentage of resources allowed for the workload group, taking into account Effective Min Resource Percentage allocated for other workload groups. Applies only to data warehouses
azure_sql_servers_databases_wlg_effective_min_resource_percentwlg_effective_min_resource_percentEffective min resource percentPercentAverageMinimum percentage of resources reserved and isolated for the workload group, taking into account the service level minimum. Applies only to data warehouses
azure_sql_servers_databases_wlg_queued_querieswlg_queued_queriesWorkload group queued queriesCountTotalQueued queries within the workload group. Applies only to data warehouses

External reference

What is Azure SQL Database?