Database DTU alerts

We've got around 400 production databases that we've just flipped from the Web data tier to the Basic and standard tiers.  I'm trying to set up alerts to monitor DTU percentage.  I really don't want to have to manually do this for all 400 databases through the portal.  I'm hoping I can set up the alerts through powershell, the apis, or the Azure SDK.  So far, I haven't had any luck.  Does anyone know if this is possible?

July 15th, 2015 10:48am

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2015 11:46am

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
July 15th, 2015 11:48am

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2015 3:45pm

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
July 15th, 2015 3:45pm

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2015 3:45pm

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
July 15th, 2015 3:45pm

Check the blog post at http://blogs.technet.com/b/keithmayer/archive/2014/11/08/scripts-to-tools-automate-monitoring-alert-rules-in-microsoft-azure-with-powershell-and-the-azure-service-management-rest-api.aspx

The REST API doc is at https://msdn.microsoft.com/en-us/library/dn510366.aspx

Resource id is {subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}

The metric names supported are

  • cpu_percent
  • physical_data_read_percent
  • log_write_percent
  • dtu_consumption_percent
  • storage
  • connection_successful
  • connection_failed
  • blocked_by_firewall
  • deadlock
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2015 3:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics