Microsoft Azure Synapse Analytics API poller template
Use this SAM API poller template to monitor Microsoft Azure Synapse Analytics (formerly SQL Data Warehouse) performance and statistics counters, including utilization.
Links and screenshots herein are attributed to © 2021 Microsoft Corp., available at docs.microsoft.com.
Prerequisites
-
Use the following parameters to specify the API endpoint in the request URL:
- ${SUBSCRIPTION_ID}
- ${USERGROUP_ID}
- ${SERVER_ID}
- ${DATAWAREHOUSE_ID}
Use the following example to help locate values in Azure:
-
Configure OAuth 2.0 Azure credentials with the following values:
- Scope:
https://management.azure.com/.default
- Access Token URL:
https://login.microsoftonline.com/{TENANTID}/oauth2/v2.0/token
Although "(optional)" appears next to the Scope field in the UI, this value is required for API pollers based on this template.
- Scope:
-
The SQL Server has access control to the Application with at least the Reader role.
Notes
- Default thresholds are not set for this template.
- Here is a request example:
https://management.azure.com/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${USERGROUP_ID}/providers/Microsoft.Sql/servers/${SERVER_ID}/databases/${DATAWAREHOUSE_ID}/providers/microsoft.insights/metrics?interval=PT1H&metricnames=dwu_consumption_percent,dwu_limit,dwu_used&aggregation=Maximum&api-version=2019-07-01
Available metrics
Data warehouse units (DWU) utilization
The maximum percentage of database warehouse units used for the given SQL database during the time period specified as the polling frequency.
Unit: Percent
Data warehouse units (DWU) limit
The maximum database warehouse limit in units for the given SQL database during the time period specified as the polling frequency.
Unit: Count
Data warehouse units (DWU) used
The maximum database throughput units per minute used for the given SQL database during the time period specified as the polling frequency.
Unit: Count