Jump to content

Lesson Learned #321:Useful Kusto Monitoring Queries for Azure SQL Database and Elastic Database Pool


Recommended Posts

Guest Jose_Manuel_Jurado
Posted

You could find here useful Kusto queries to monitor Elastic Database Pool and Azure SQL Databases standalone.

 

 

 

CPU Percentage

 

 

 

 

 

 

 

 

AzureMetrics

| where ResourceProvider == "MICROSOFT.SQL"

| where TimeGenerated >= ago(1d)

| where MetricName in ('cpu_percent')

| parse _ResourceId with * "/microsoft.sql/servers/" Resource

| summarize CPU_percent = max(Maximum) by Resource, MetricName

 

 

 

 

 

 

 

 

 

Data IO percentage.

 

 

 

 

 

 

 

 

 

 

AzureMetrics

| where ResourceProvider == "MICROSOFT.SQL"

| where TimeGenerated >= ago(1d)

| where MetricName in ('physical_data_read_percent')

| parse _ResourceId with * "/microsoft.sql/servers/" Resource

| summarize Physical_data_percent = max(Maximum) by Resource, MetricName

 

 

 

 

 

 

 

 

 

Log IO percentage.

 

 

 

 

 

 

 

 

 

 

AzureMetrics

| where ResourceProvider == "MICROSOFT.SQL"

| where TimeGenerated >= ago(1d)

| where MetricName in ('log_write_percent')

| parse _ResourceId with * "/microsoft.sql/servers/" Resource

| summarize LOG_Write_percent = max(Maximum) by Resource, MetricName

 

 

 

 

 

 

 

 

 

 

 

Enjoy!

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...